SE_table_get_rowlocks_by_user

Returns the row locks set by a particular user on a DBMS table.

Usage syntax

LONG SE_table_get_rowlocks_by_user
(SE_CONNECTION connection,
const CHAR *table,
const CHAR *user_name,
LONG *num_locks,
LONG **row_ID);

Parameters
connection The connection handle
table The name of the table
user_name The user name
num_locks The number of locks
row_ID The array of row IDs
Description

SE_table_get_rowlocks_by_user returns the row locks set by a particular user on a DBMS table as arrays of row IDs and state IDs. You must set the user_name parameter. To return all row locks on a table, use SE_table_get_rowlocks. You are responsible for freeing the row_ID array.

Returns

SE_SUCCESS
SE_INVALID_CONNECTION

SE_INVALID_PARAM_VALUE

SE_INVALID_POINTER

SE_NET_FAILURE

SE_OUT_OF_CLMEM

SE_SDE_NOT_STARTED