diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2012-06-01 15:42:27 +0200 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2012-06-01 17:03:13 +0200 |
commit | 24ea39d7260dd536a24f50fa4a0b7e0cc9ea9896 (patch) | |
tree | 905bc9b6a4ff1fead1cdbd9e8364ecab009f2d4a /dbaccess | |
parent | e7e21a6feae30c29c956235d071ebb0805c5afb2 (diff) |
OKeySet::refreshRow: Invalidate m_xRow/m_xSet when BeforeFirst or AfterLast
Change-Id: I0f48c099eddc077b2a89e3b7fab66b5da55b57c8
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/core/api/KeySet.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dbaccess/source/core/api/KeySet.cxx b/dbaccess/source/core/api/KeySet.cxx index 13464c4c870a..49f463662d99 100644 --- a/dbaccess/source/core/api/KeySet.cxx +++ b/dbaccess/source/core/api/KeySet.cxx @@ -1334,12 +1334,13 @@ bool OKeySet::doTryRefetch_throw() throw(SQLException, RuntimeException) void SAL_CALL OKeySet::refreshRow() throw(SQLException, RuntimeException) { RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbaccess", "Ocke.Janssen@sun.com", "OKeySet::refreshRow" ); - if(isBeforeFirst() || isAfterLast() || !m_xStatement.is()) - return; m_xRow = NULL; ::comphelper::disposeComponent(m_xSet); + if(isBeforeFirst() || isAfterLast() || !m_xStatement.is()) + return; + if ( m_aKeyIter->second.second.second.is() ) { m_xRow = m_aKeyIter->second.second.second; |