|
|
Lock a database object (a table or a row).
- Parameters:
-
| hdb | Database handle. |
| oid | Object id of object to lock. |
| flags | Lock mode.
- Timeout mode:
- DB_TRY_LOCK Return immediately if lock can't be granted.
- Lock mode:
- Lock duration:
|
- Returns:
- Lock handle.
- NULL on failure.
On failure, one of the following error codes is set:
- See also:
- get_db_error, clear_db_error, Error Handling
|