| Type | info |
| Title | com.sun.star.sdb.RowSet: behavior of deleteRow fixed (with respect to the RowCount) |
| Posted by | [EMAIL PROTECTED] |
| Affected | ,- |
| Effective from | 680m153 |
Summary
com.sun.star.sdb.RowSet::XResultSetUpdate.deleteRow does not immediately affect the row count
Description
In the course of fixing a bug, the behavior of the
com.sun.star.sdb.RowSet service's deleteRow method has been better
defined than before, and thus slightly changed behaviour.
If your code is a client of this service, you might want to check
whether it could be affected (all places in the OpenOffice.org code
base I found aren't).
As before, deleteRow does delete the current row, but not move the
cursor away from it. Consequently, "rowDeleted" returns TRUE on the
current row then. Only subsequent movement calls of the cursor (next,
prev, and friends) will move away from the deleted row, and let it vanish.
This is the all-time behaviour, and has not changed at all.
However, previously the RowCount property of the RowSet was adjusted
as soon as the row was deleted, even before it vanished from the
RowSet. As a result, the RowCount was wrong immediately after the
deleteRow, as long as a movement occured.
This behaviour has been fixed so that the RowCount only changes with
the subsequent movement.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
