summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2012-05-15 18:36:12 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2012-05-15 18:52:12 +0200
commit8fca982829c03995e74faf17e5777b3aa61b91dc (patch)
tree5c4c404812f3990e6cc95b93505635f8801ecad8
parentcdd4d969b1446ca0492adda239f5caf9987b84eb (diff)
fdo#48345 need to refresh row also when not m_bRowCountFinal
-rw-r--r--dbaccess/source/core/api/KeySet.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/dbaccess/source/core/api/KeySet.cxx b/dbaccess/source/core/api/KeySet.cxx
index 309d6d8d02d5..49edcbf6dd83 100644
--- a/dbaccess/source/core/api/KeySet.cxx
+++ b/dbaccess/source/core/api/KeySet.cxx
@@ -1108,14 +1108,9 @@ sal_Bool SAL_CALL OKeySet::next( ) throw(SQLException, RuntimeException)
if(!m_bRowCountFinal) // not yet all records fetched
{
++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())
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())
++m_aKeyIter;