diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2012-01-23 10:19:55 +0100 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2012-01-23 10:22:48 +0100 |
commit | 520b8118f4a2d54e4849929d94091f29a6434346 (patch) | |
tree | 2835a13559cfb2241bc3cf7341825575855cfdb6 /dbaccess | |
parent | 7735b09b5e10e366ffb3a156790316ea0ccfa0a0 (diff) |
ORowSetCache::fillMatrix(): fix case m_nFetchsize > table size
When lowering m_nStartPos, do not duplicate rows above its old value
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/core/api/RowSetCache.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dbaccess/source/core/api/RowSetCache.cxx b/dbaccess/source/core/api/RowSetCache.cxx index 87655f476cd2..4cc1811905f5 100644 --- a/dbaccess/source/core/api/RowSetCache.cxx +++ b/dbaccess/source/core/api/RowSetCache.cxx @@ -796,7 +796,7 @@ sal_Bool ORowSetCache::fillMatrix(sal_Int32& _nNewStartPos,sal_Int32 _nNewEndPos ++nPos; bCheck = m_pCacheSet->absolute(nPos); - for(;bCheck && aIter != aRealEnd;++aIter) + for(;bCheck && nPos <= m_nStartPos && aIter != aRealEnd; ++aIter) { if(!aIter->is()) *aIter = new ORowSetValueVector(m_xMetaData->getColumnCount()); |