Kaydet (Commit) 24ea39d7 authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane

OKeySet::refreshRow: Invalidate m_xRow/m_xSet when BeforeFirst or AfterLast

Change-Id: I0f48c099eddc077b2a89e3b7fab66b5da55b57c8
üst e7e21a6f
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment