Advantage Client Engine
Unlocks the given record
UNSIGNED32 |
AdsUnlockRecord (ADSHANDLE hTable, UNSIGNED32 ulRec); |
hTable (I) |
Handle of table or cursor. |
ulRec (I) |
Record number to unlock. If zero, then unlock the current record. |
AE_RECORD_NOT_LOCKED |
The indicated record was not locked. |
AE_INVALID_RECORD_NUMBER |
The record number given was not valid. |
AdsUnlockRecord releases the server’s lock on the record and flushes any changes in the record to disk.
Note Records cannot be unlocked on the server during transactions. Therefore, calls to AdsUnlockRecord during a transaction will cause the Advantage Client Engine to mark the record lock as "unlocked during transaction", and the Advantage Client Engine will release the lock at the end (commit or rollback) of the transaction.