summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2012-08-02 11:58:55 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2012-08-02 12:07:45 +0200
commit5b85f6c1ef24b7189a78b64ebafd1679f090fd2b (patch)
treee89590fdd49e4d3bbfff1879e4624fbe391b20a2 /dbaccess
parent6ff70708b4a39011a61aa0f53541eb7eec09c813 (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 549b00d100b6..f72f4ffa7d4e 100644
--- a/dbaccess/source/core/api/RowSetCache.cxx
+++ b/dbaccess/source/core/api/RowSetCache.cxx
@@ -1042,7 +1042,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