From 313a81f9158600b6a214fe54d11ec4afcc0cc961 Mon Sep 17 00:00:00 2001 From: Lionel Elie Mamane Date: Wed, 28 Aug 2013 19:21:41 +0200 Subject: 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 --- connectivity/source/drivers/odbcbase/OResultSet.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'connectivity') 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) { -- cgit