summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2013-08-28 19:21:41 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2013-08-28 19:27:40 +0200
commit313a81f9158600b6a214fe54d11ec4afcc0cc961 (patch)
treeb9205d8791fc946b9f1a2dd22bdb30f1a6d5d0b2 /connectivity
parentc72a6ebd4ab41e690bf349c8dd4597a2140aac9a (diff)
ODBC OResultSet::ensureCacheForColumn initialise *all* new elements
e.g. when growing m_aRow from size 3 to size 10 (that is, columnIndex==9), the old code was initialising only position 9 while it we need to initialise all new positions, that is positions 3 to 9. Change-Id: I6a51b816104e33fdd7773b68e254e9bea50110ef
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/odbcbase/OResultSet.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/drivers/odbcbase/OResultSet.cxx b/connectivity/source/drivers/odbcbase/OResultSet.cxx
index 91b8cc673173..2d044e6a638b 100644
--- a/connectivity/source/drivers/odbcbase/OResultSet.cxx
+++ b/connectivity/source/drivers/odbcbase/OResultSet.cxx
@@ -413,7 +413,7 @@ void OResultSet::ensureCacheForColumn(sal_Int32 columnIndex)
return;
m_aRow.resize(columnIndex + 1);
- TDataRow::iterator i (m_aRow.begin() + uColumnIndex);
+ TDataRow::iterator i (m_aRow.begin() + oldCacheSize);
const TDataRow::const_iterator end(m_aRow.end());
for (; i != end; ++i)
{