Kaydet (Commit) 8fca9828 authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane

fdo#48345 need to refresh row also when not m_bRowCountFinal

üst cdd4d969
...@@ -1108,14 +1108,9 @@ sal_Bool SAL_CALL OKeySet::next( ) throw(SQLException, RuntimeException) ...@@ -1108,14 +1108,9 @@ sal_Bool SAL_CALL OKeySet::next( ) throw(SQLException, RuntimeException)
if(!m_bRowCountFinal) // not yet all records fetched if(!m_bRowCountFinal) // not yet all records fetched
{ {
++m_aKeyIter; // this is possible because we stand on begin() and this is the "beforefirst" row ++m_aKeyIter; // this is possible because we stand on begin() and this is the "beforefirst" row
// LEM: above comment is wrong; we may be anywhere but after last.
if(m_aKeyIter == m_aKeyMap.end() && !fetchRow()) if(m_aKeyIter == m_aKeyMap.end() && !fetchRow())
m_aKeyIter = m_aKeyMap.end(); m_aKeyIter = m_aKeyMap.end();
else
{
//m_aKeyIter->second.second.second = new OPrivateRow(_rInsertRow->get());
m_xRow.set(m_xDriverRow,UNO_QUERY_THROW);
return !isAfterLast();
}
} }
else if(!isAfterLast()) else if(!isAfterLast())
++m_aKeyIter; ++m_aKeyIter;
......
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