diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2015-05-30 16:56:29 +0200 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2015-05-30 17:35:56 +0200 |
commit | d35ac867bd5653d612e3dde601686a76081dadd8 (patch) | |
tree | e403582c1cbe139c6f2d51218a735a3e6fe8d415 /dbaccess | |
parent | ccceac2a91204a1f03316fba59ba32946470ef94 (diff) |
do not try to get bookmark when in invalid position
Change-Id: I64fc14e527af4f0f846bbfae84cf8d1d2914b6b9
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/core/api/RowSetBase.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dbaccess/source/core/api/RowSetBase.cxx b/dbaccess/source/core/api/RowSetBase.cxx index 09c98474f4c9..01830fb279d7 100644 --- a/dbaccess/source/core/api/RowSetBase.cxx +++ b/dbaccess/source/core/api/RowSetBase.cxx @@ -1239,6 +1239,7 @@ void ORowSetBase::positionCache( CursorMoveDirection _ePrepareForDirection ) if ( m_aBookmark.hasValue() ) { if (_ePrepareForDirection == MOVE_NONE_REFRESH || + (m_pCache->isAfterLast() != isAfterLast()) || ( m_pCache->isBeforeFirst() != isBeforeFirst() ) || m_pCache->compareBookmarks( m_aBookmark, m_pCache->getBookmark() ) != CompareBookmark::EQUAL ) bSuccess = m_pCache->moveToBookmark( m_aBookmark ); else |