summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorFrank Schönheit <fs@openoffice.org>2001-01-26 06:06:23 +0000
committerFrank Schönheit <fs@openoffice.org>2001-01-26 06:06:23 +0000
commit93390ce179cbd52ff1747102452cadc42908ef23 (patch)
treef3c68a492699906f0bfbae02ce4813e0cea6f4d9 /connectivity
parent12564dbc60dc8d5b3fb9ccaea666a48165cd9df8 (diff)
corrected the value collecting process for DISTINCT stantements
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/file/FResultSet.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/connectivity/source/drivers/file/FResultSet.cxx b/connectivity/source/drivers/file/FResultSet.cxx
index 84ee80cd6706..7f5c7bba1e90 100644
--- a/connectivity/source/drivers/file/FResultSet.cxx
+++ b/connectivity/source/drivers/file/FResultSet.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: FResultSet.cxx,v $
*
- * $Revision: 1.27 $
+ * $Revision: 1.28 $
*
- * last change: $Author: fs $ $Date: 2001-01-25 10:32:53 $
+ * last change: $Author: fs $ $Date: 2001-01-26 07:06:23 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -2123,9 +2123,9 @@ BOOL OResultSet::OpenImpl()
{
xIndexes = Reference<XIndexAccess>(xIndexSup->getIndexes(),UNO_QUERY);
Reference<XPropertySet> xColProp;
- if(nOrderbyColumnNumber[0] < xNames->getCount())
+ if(nOrderbyColumnNumber[0] < xIndexes->getCount())
{
- xNames->getByIndex(nOrderbyColumnNumber[0]) >>= xColProp;
+ xIndexes->getByIndex(nOrderbyColumnNumber[0]) >>= xColProp;
// iterate through the indexes to find the matching column
for(sal_Int32 i=0;i<xIndexes->getCount();++i)
{
@@ -2192,7 +2192,7 @@ BOOL OResultSet::OpenImpl()
OSL_ENSHURE(m_pFileSet,"Kein KeySet vorhanden! :-(");
DISTINCT: if(bDistinct && m_pFileSet) // sicher ist sicher
{
- OValueRow aSearchRow;//(m_aRow);
+ OValueRow aSearchRow = new OValueVector(m_aRow->size());
// ODbRowRef aSearchRow = new ODbRow(*aFileRow); // nach dieser wird gesucht
// const ODbRow &rSearchRow = *aSearchRow,
// &rFileRow = *aFileRow;
@@ -2211,7 +2211,7 @@ BOOL OResultSet::OpenImpl()
if(!nWasAllwaysFound[j] && nPos) // nur falls noch nicht nach dieser Row gesucht wurde
{
ExecuteRow(OFileTable::FILE_BOOKMARK,nPos,TRUE,FALSE);
- aSearchRow = m_aRow;
+ *aSearchRow = *m_aRow;
// jetzt den Rest nach doppelten durchsuchen
INT32 nKey;
nPrev_i = j;