KI_UNLOCK
Argument | Enumeration | Purpose |
---|---|---|
handle | Handle | |
rowid$ | Row ID to row | |
status | KDB_ERROR_ENUM | Return status |
KI_UNLOCK
This unlocks a row specified by ROWID which must have been locked by the same KCML in a previous KI_READ_HOLD.
On SQL systems transactional row locks will be released automatically at the end of a transaction and calling KI_UNLOCK inside the transaction will have no effect. However if the transaction was started implicitely by a KI_READ_HOLD then calling KI_UNLOCK for that ROWID will rollback the implicit transaction. Calling KI_UNLOCK outside a transaction for a long term lock will unlock the row.