Kaydet (Commit) 313a81f9 authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane

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
üst c72a6ebd
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment