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:32:51 +0200 |
commit | d6d19acaca14d5b45ffb0db0028f17567d196c4d (patch) | |
tree | 1a316e4b86ae5e64a4414153c8d70965a2c3eb8b /dbaccess | |
parent | b4e6dd8200145b6fa950cf813826e92a5caac1a5 (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 |