From 767e15343fdedffce513fd26ce17ee6003936117 Mon Sep 17 00:00:00 2001 From: Lionel Elie Mamane Date: Mon, 16 Jun 2014 10:46:41 +0200 Subject: [PATCH] clean up fdo#79427 fix: force BeforeFirst only at execute(), not updateRow() Change-Id: Iaa881d055923702acbb96862d187af41a6ded730 --- dbaccess/source/core/api/RowSet.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbaccess/source/core/api/RowSet.cxx b/dbaccess/source/core/api/RowSet.cxx index d5e6411c79bf..9820287e5957 100644 --- a/dbaccess/source/core/api/RowSet.cxx +++ b/dbaccess/source/core/api/RowSet.cxx @@ -2007,6 +2007,7 @@ void ORowSet::execute_NoApprove_NoNewConn(ResettableMutexGuard& _rClearForNotifi else // !m_bCommandFacetsDirty { impl_rebuild_throw(_rClearForNotification); + beforeFirst(); } checkCache(); // notify the rowset listeners @@ -2740,7 +2741,6 @@ void ORowSet::impl_rebuild_throw(::osl::ResettableMutexGuard& _rGuard) { xResultSet = m_xStatement->executeQuery(); m_pCache->reset(xResultSet); - beforeFirst(); } m_aWarnings.setExternalWarnings( Reference< XWarningsSupplier >( xResultSet, UNO_QUERY ) ); notifyAllListeners(_rGuard);