summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2012-08-02 11:58:55 +0200
committerNoel Power <noel.power@novell.com>2012-08-02 12:08:30 +0100
commitc7b0f9fa41789b3b514b81bae32cf5c39aa6fa34 (patch)
tree55f9191100b127c2204bd5fabde19d6cce3cfd88 /dbaccess
parent36f8fb4b4b716577142b8855cece13b699d0559a (diff)
nPos is 1-based, so allowed to be equal to row count
Change-Id: Idb37cd23a58816bd16c725fda49a2f9875450e79
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/core/api/RowSetCache.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbaccess/source/core/api/RowSetCache.cxx b/dbaccess/source/core/api/RowSetCache.cxx
index 05a88d05ac16..fd2fe1f1be18 100644
--- a/dbaccess/source/core/api/RowSetCache.cxx
+++ b/dbaccess/source/core/api/RowSetCache.cxx
@@ -1051,7 +1051,7 @@ sal_Bool ORowSetCache::moveWindow()
else if(!m_bRowCountFinal)
m_nRowCount = std::max(nPos+1, m_nRowCount); //+1 because we successfully moved to row after nPos
else
- OSL_ENSURE(m_nRowCount > nPos, "Final m_nRowCount is smaller than row I moved to!");
+ OSL_ENSURE(m_nRowCount >= nPos, "Final m_nRowCount is smaller than row I moved to!");
}
else
{ // the end was reached before or at end() so we can set the start before or at nNewStartPos