diff options
author | Ocke Janssen <oj@openoffice.org> | 2000-11-10 13:14:30 +0000 |
---|---|---|
committer | Ocke Janssen <oj@openoffice.org> | 2000-11-10 13:14:30 +0000 |
commit | f6d07d3dc8f32ade8f35484a745506eb442dcb33 (patch) | |
tree | f28658871835d87b32f81c3c541d86a3bdefc477 /connectivity/source/drivers/file/FResultSet.cxx | |
parent | 4245d00acc6bf078e2978338b4320cc9e648a636 (diff) |
wrong index for order column
Diffstat (limited to 'connectivity/source/drivers/file/FResultSet.cxx')
-rw-r--r-- | connectivity/source/drivers/file/FResultSet.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/connectivity/source/drivers/file/FResultSet.cxx b/connectivity/source/drivers/file/FResultSet.cxx index 2b77277cb9df..d5f9484fdfcc 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.15 $ + * $Revision: 1.16 $ * - * last change: $Author: oj $ $Date: 2000-11-10 11:05:14 $ + * last change: $Author: oj $ $Date: 2000-11-10 14:14:30 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1932,7 +1932,7 @@ BOOL OResultSet::OpenImpl() OSL_ENSHURE(sizeof nOrderbyColumnNumber / sizeof (* nOrderbyColumnNumber) == SQL_ORDERBYKEYS,"Maximale Anzahl der ORDER BY Columns muss derzeit genau 3 sein!"); OKeyType eKeyType[SQL_ORDERBYKEYS]; - aRowIter = m_aRow->begin(); + aRowIter = m_aRow->begin()+1; for (int i = 0; i < SQL_ORDERBYKEYS; i++) { if (nOrderbyColumnNumber[i] == SQL_COLUMN_NOTFOUND) @@ -2242,7 +2242,7 @@ void OResultSet::setOrderbyColumn(UINT16 nOrderbyColumnNo, return; // Alles geprueft und wir haben den Namen der Column. // Die wievielte Column ist das? - nOrderbyColumnNumber[nOrderbyColumnNo] = xColLocate->findColumn(aColumnName)-1; + nOrderbyColumnNumber[nOrderbyColumnNo] = xColLocate->findColumn(aColumnName); // Ascending or Descending? bOrderbyAscending[nOrderbyColumnNo] = (SQL_ISTOKEN(pAscendingDescending,DESC)) ? |