summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorOcke Janssen [oj] <Ocke.Janssen@sun.com>2010-07-07 09:07:34 +0200
committerOcke Janssen [oj] <Ocke.Janssen@sun.com>2010-07-07 09:07:34 +0200
commit9b3ed7aa9162094b99fd3341c0432c94e659420b (patch)
treebe664504b0e974fe0a2a754e9c83ab568ae5f24d /connectivity
parent444742b5201b4036245348f6232a677038b6f057 (diff)
dba33g: handle of next and prior for count function corrected
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/file/FResultSet.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/connectivity/source/drivers/file/FResultSet.cxx b/connectivity/source/drivers/file/FResultSet.cxx
index 265084be697f..421225b34935 100644
--- a/connectivity/source/drivers/file/FResultSet.cxx
+++ b/connectivity/source/drivers/file/FResultSet.cxx
@@ -1200,7 +1200,9 @@ BOOL OResultSet::Move(IResultSetHelper::Movement eCursorPosition, INT32 nOffset,
break;
}
- if (m_nRowPos == 0)
+ if ( m_nRowPos < 0 )
+ goto Error;
+ else if (m_nRowPos == 0)
{
// COUNT(*) in Ergebnisrow packen
// (muss die erste und einzige Variable in der Row sein)