From 24ea39d7260dd536a24f50fa4a0b7e0cc9ea9896 Mon Sep 17 00:00:00 2001 From: Lionel Elie Mamane Date: Fri, 1 Jun 2012 15:42:27 +0200 Subject: OKeySet::refreshRow: Invalidate m_xRow/m_xSet when BeforeFirst or AfterLast Change-Id: I0f48c099eddc077b2a89e3b7fab66b5da55b57c8 --- dbaccess/source/core/api/KeySet.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'dbaccess/source') 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; -- cgit