diff options
Diffstat (limited to 'connectivity/source/drivers/ado/AResultSet.cxx')
-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) { |