diff options
author | Ocke Janssen <oj@openoffice.org> | 2002-07-05 08:41:10 +0000 |
---|---|---|
committer | Ocke Janssen <oj@openoffice.org> | 2002-07-05 08:41:10 +0000 |
commit | 7b99832453663c7cedb4132f98fb8925f997302f (patch) | |
tree | 485e2893db3905b96327769c5cdfb608f670d5ee /connectivity | |
parent | f781dca3b986f8e9cdd0b8c8a195dbb3b0809d8b (diff) |
#96453# relative corrected
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/ado/AResultSet.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/connectivity/source/drivers/ado/AResultSet.cxx b/connectivity/source/drivers/ado/AResultSet.cxx index 303219a7b391..3d9f30705797 100644 --- a/connectivity/source/drivers/ado/AResultSet.cxx +++ b/connectivity/source/drivers/ado/AResultSet.cxx @@ -2,9 +2,9 @@ * * $RCSfile: AResultSet.cxx,v $ * - * $Revision: 1.16 $ + * $Revision: 1.17 $ * - * last change: $Author: oj $ $Date: 2002-01-22 07:25:58 $ + * last change: $Author: oj $ $Date: 2002-07-05 09:41:10 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -560,6 +560,9 @@ sal_Bool SAL_CALL OResultSet::relative( sal_Int32 row ) throw(SQLException, Runt OLEVariant aEmpty; aEmpty.setNoArg(); + sal_Int32 nNewPos = row; + if ( m_bOnFirstAfterOpen && nNewPos > 0 ) + --nNewPos; sal_Bool bRet = SUCCEEDED(m_pRecordSet->Move(row,aEmpty)); if(bRet) { @@ -574,7 +577,6 @@ sal_Bool SAL_CALL OResultSet::previous( ) throw(SQLException, RuntimeException) ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(OResultSet_BASE::rBHelper.bDisposed); - sal_Bool bRet = SUCCEEDED(m_pRecordSet->MovePrevious()); if(bRet) { |