diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2012-06-01 16:40:41 +0200 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2012-06-01 17:02:10 +0200 |
commit | 228c360e7d53a74d9908e9b164b12ace316cd34e (patch) | |
tree | 17016bac7a013d6c1da826ac4217b8f2d728862d /dbaccess | |
parent | 76a74b72db45a5aa3f064034e0fa05440aefb52b (diff) |
fdo#47520 use the already retrieved row instead of driver row
This avoids asking the driver for the same data twice.
This is particularly important for ODBC data sources, because when asking for (VAR)CHAR data the second time, one gets no data (and status SQL_NO_DATA) because of the "retrieve in parts" semantics of these datatypes.
Change-Id: I96f2df9927fda72ccf19f78ec5c561f5626c003f
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/core/api/KeySet.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/dbaccess/source/core/api/KeySet.cxx b/dbaccess/source/core/api/KeySet.cxx index c74cb23becda..f462b9b8a39f 100644 --- a/dbaccess/source/core/api/KeySet.cxx +++ b/dbaccess/source/core/api/KeySet.cxx @@ -1234,8 +1234,7 @@ sal_Bool OKeySet::absolute_checked( sal_Int32 row,sal_Bool i_bFetchRow ) bNext = fetchRow(); if ( bNext ) { - m_xRow.set(m_xDriverRow,UNO_QUERY_THROW); - return m_aKeyIter != m_aKeyMap.end() && m_aKeyIter != m_aKeyMap.begin(); + i_bFetchRow = true; } } else |