summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2015-09-17 19:31:35 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2015-09-17 19:35:57 +0200
commit558b08d55f69b04eea42a37abd97fbb4dbe3602f (patch)
tree2f619026f137097752317339f7124c0c9f7add78 /dbaccess
parenta4677e8d868840ade21d74938c29ccdf75e9c666 (diff)
silence warning when not a warning
Change-Id: I31d7835a5ed3053cd1a930b3fb922d689d6ddcbe
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/core/api/RowSetCache.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/dbaccess/source/core/api/RowSetCache.cxx b/dbaccess/source/core/api/RowSetCache.cxx
index ed838ede5b43..fe21eaee362f 100644
--- a/dbaccess/source/core/api/RowSetCache.cxx
+++ b/dbaccess/source/core/api/RowSetCache.cxx
@@ -741,7 +741,8 @@ bool ORowSetCache::afterLast( )
bool ORowSetCache::fillMatrix(sal_Int32& _nNewStartPos, sal_Int32 &_nNewEndPos)
{
- OSL_ENSURE(_nNewStartPos != _nNewEndPos,"ORowSetCache::fillMatrix: StartPos and EndPos can not be equal!");
+ OSL_ENSURE((_nNewStartPos != _nNewEndPos) || (_nNewStartPos == 0 && _nNewEndPos == 0 && m_nRowCount == 0),
+ "ORowSetCache::fillMatrix: StartPos and EndPos can not be equal (unless the recordset is empty)!");
// If _nNewStartPos >= 0, then fill the whole window with new data
// Else if _nNewStartPos == -1, then fill only segment [m_nEndPos, _nNewEndPos)
// Else, undefined (invalid argument)