diff options
author | Ocke Janssen <oj@openoffice.org> | 2000-11-10 10:05:43 +0000 |
---|---|---|
committer | Ocke Janssen <oj@openoffice.org> | 2000-11-10 10:05:43 +0000 |
commit | 3c7346ee98f95c4577e343a1d42f1f0a86525120 (patch) | |
tree | b2da5930e7bd48c3495926fe9042f8ebb4b82e9d /connectivity | |
parent | de8a7ff2d2d46b3816eebafc9579dbaf6f2e9825 (diff) |
bookmark error corrected
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/file/FResultSet.cxx | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/connectivity/source/drivers/file/FResultSet.cxx b/connectivity/source/drivers/file/FResultSet.cxx index 87d86af3963a..2b77277cb9df 100644 --- a/connectivity/source/drivers/file/FResultSet.cxx +++ b/connectivity/source/drivers/file/FResultSet.cxx @@ -2,9 +2,9 @@ * * $RCSfile: FResultSet.cxx,v $ * - * $Revision: 1.14 $ + * $Revision: 1.15 $ * - * last change: $Author: oj $ $Date: 2000-11-03 14:14:48 $ + * last change: $Author: oj $ $Date: 2000-11-10 11:05:14 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -734,10 +734,14 @@ void SAL_CALL OResultSet::insertRow( ) throw(SQLException, RuntimeException) sal_Int32 nPos = (*m_aInsertRow)[0]; m_pFileSet->push_back(nPos); m_aRow = m_aInsertRow; - if(m_nRowPos < 0) - m_aBookmarkToPos[nPos] = 1; + // we know that we append new rows at the end + // so we can assume this + if(m_aBookmarkToPos.size()) + m_aBookmarkToPos[nPos] = m_aBookmarkToPos.rbegin()->second + 1; else - m_aBookmarkToPos[nPos] = m_nRowPos + 1; + m_aBookmarkToPos[nPos] = 1; +// else +// m_aBookmarkToPos[nPos] = m_nRowPos + 1; } } // ------------------------------------------------------------------------- |