dbaccess/source/core/api/RowSetCache.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit dc41bafaf5086bc59b9a2a6315ef5c59fa4a8016
Author:     prrvchr <prrv...@gmail.com>
AuthorDate: Wed Jul 9 14:32:24 2025 +0200
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Wed Jul 9 16:00:29 2025 +0200

    tdf#167434 Don't call cancelRowUpdates when cursor is in insert row
    
    It is not possible to use the css.sdbcx.XRowLocate interface in
    ResultSets because Base, in order to ensure that this ResultSet
    is editable, performs cancelRowUpdates() when the cursor is on
    the insertion row.
    
    Change-Id: I4624623754c40dbef1f83b4d6498db17f996c65e
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187567
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>
    Tested-by: Jenkins

diff --git a/dbaccess/source/core/api/RowSetCache.cxx 
b/dbaccess/source/core/api/RowSetCache.cxx
index 220d4f6d5b2a..46c01a27207b 100644
--- a/dbaccess/source/core/api/RowSetCache.cxx
+++ b/dbaccess/source/core/api/RowSetCache.cxx
@@ -108,6 +108,7 @@ ORowSetCache::ORowSetCache(const Reference< XResultSet >& 
_xRs,
         if ( bBookmarkable )
         {
             xUp->moveToInsertRow();
+            xUp->moveToCurrentRow();
             xUp->cancelRowUpdates();
             _xRs->beforeFirst();
             m_nPrivileges = 
Privilege::SELECT|Privilege::DELETE|Privilege::INSERT|Privilege::UPDATE;

Reply via email to