A.06.30 Release Notes
When using database locks and transactions an unlock is now delayed
until the database transaction is finished (either committed or rolled back).
This makes it easier to adopt database transactions with existing software and
avoids possible interactions between transactions and database locks by
applications which may result in a deadlock.
The following example demonstrates this:
! Begin transaction
! Write-Lock customer 12345
PREDICATE Q$ FROM "CUSTOMER","CUSTNO","=",12345
! Update customer record
! Unlock customer. The lock is not freed until the transaction completes.
! This will also release freed locks
With previous Eloquence versions database locks were independend
from transactions. This could lead to a situation where a record is
locked by a transaction (because it was modified in a transaction)
and another user aquires a lock and then tries to update the same
The lock status is marked as "PENDING" in the http status
display and dbctl output.