| SE_table_add_rowlocks |
Adds row locks to a DBMS table.
LONG SE_table_add_rowlocks
(SE_CONNECTION connection,
const CHAR *table,
LONG num_locks,
LONG *row_ID,
LONG state_ID,
LONG *failed_rowID);
| connection | The connection handle |
| table | The name of the table |
| num_locks | The number of locks |
| row_ID | The array of row IDs to lock |
| state_ID | The state ID to use. Set to SE_NULL_STATE_ID if the table isn't multiversioned |
| failed_rowID | The first row that couldn't be locked. Zero if the operation succeeded |
SE_table_add_rowlocks adds one or more row locks to a DBMS table. If a row doesn't exist in the specified state or is already locked, the operation will fail. This function automatically executes a commit.
SE_SUCCESS
SE_INVALID_CONNECTION
SE_INVALID_PARAM_VALUE
SE_INVALID_POINTER
SE_NET_FAILURE
SE_SDE_NOT_STARTED