diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2013-08-28 19:21:41 +0200 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2013-08-28 19:27:40 +0200 |
commit | 313a81f9158600b6a214fe54d11ec4afcc0cc961 (patch) | |
tree | b9205d8791fc946b9f1a2dd22bdb30f1a6d5d0b2 /connectivity | |
parent | c72a6ebd4ab41e690bf349c8dd4597a2140aac9a (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.cxx | 2 |
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) { |