summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2012-05-15 18:36:12 +0200
committerCaolán McNamara <caolanm@redhat.com>2012-05-18 16:43:39 +0100
commit222ba799ad57b0ff93ac103c8af65c706ca4cf37 (patch)
treedafd39f983e31d0410ae0e44db1a006abbd131e6
parentd32f3048052af80b21e8968d24eb55c48d298052 (diff)
fdo#48345 need to refresh row also when not m_bRowCountFinal
Signed-off-by: Caolán McNamara <caolanm@redhat.com>
-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 8e42b30000cb..c30d35fd9f2a 100644
--- a/dbaccess/source/core/api/KeySet.cxx
+++ b/dbaccess/source/core/api/KeySet.cxx
@@ -1145,14 +1145,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;