summaryrefslogtreecommitdiffstats
path: root/connectivity
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2012-12-05 10:54:11 +0100
committerLionel Elie Mamane <lionel@mamane.lu>2012-12-06 19:20:33 +0100
commite8951fb7d8e61c2ce67d14cbf87c4d0693b8377a (patch)
tree0f507a6dd4e368340ba239c9164c1a35e811f4a2 /connectivity
parentRefuse to set fetchSize > 1, the rest of the code is not prepared for it (diff)
downloadcore-e8951fb7d8e61c2ce67d14cbf87c4d0693b8377a.tar.gz
core-e8951fb7d8e61c2ce67d14cbf87c4d0693b8377a.zip
comments
Change-Id: I1702ea167ac6d23b1bdfcda2ea1ad7815e4474b9
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/odbcbase/OResultSet.cxx2
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;