diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2012-12-05 10:54:11 +0100 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2012-12-06 19:20:33 +0100 |
commit | e8951fb7d8e61c2ce67d14cbf87c4d0693b8377a (patch) | |
tree | 0f507a6dd4e368340ba239c9164c1a35e811f4a2 /connectivity | |
parent | 0c4f3eb65729a95e0785db0757f46eec38f3934e (diff) |
comments
Change-Id: I1702ea167ac6d23b1bdfcda2ea1ad7815e4474b9
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/odbcbase/OResultSet.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/connectivity/source/drivers/odbcbase/OResultSet.cxx b/connectivity/source/drivers/odbcbase/OResultSet.cxx index a29b445affb5..375ed3979d9d 100644 --- a/connectivity/source/drivers/odbcbase/OResultSet.cxx +++ b/connectivity/source/drivers/odbcbase/OResultSet.cxx @@ -1690,8 +1690,10 @@ sal_Bool OResultSet::move(IResultSetHelper::Movement _eCursorPosition, sal_Int32 } } else if ( IResultSetHelper::PRIOR == _eCursorPosition && m_nCurrentFetchState == SQL_NO_DATA ) + // we went beforeFirst m_nRowPos = 0; else if(IResultSetHelper::NEXT == _eCursorPosition && m_nCurrentFetchState == SQL_NO_DATA && nOldFetchStatus != SQL_NO_DATA) + // we went afterLast ++m_nRowPos; return bSuccess; |