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.kaganski@collabora.com>
Tested-by: Jenkins
This commit is contained in:
prrvchr
2025-07-09 14:32:24 +02:00
committed by Mike Kaganski
parent e2af30210f
commit dc41bafaf5

View File

@ -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;