mirror of
https://github.com/LibreOffice/core.git
synced 2025-08-15 20:47:46 +00:00
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:
@ -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;
|
||||
|
Reference in New Issue
Block a user