skip to main content
OpenAccess SDK SQL Engine Core Functions API : Function Reference : dam_getNextGrantee/dam_getNextGranteeW
 

dam_getNextGrantee/dam_getNextGranteeW

This function is used to navigate the granted user list in the GRANT and REVOKE commands of the IP DCL function. The dam_getNextGranteeW function is used for Unicode.
int dam_getNextGrantee(
DAM_HSTMT hstmt,
char * pcCatalog,
char * pcGranteeName)

int dam_getNextGranteeW(
DAM_HSTMT hstmt,
OAWCHAR * pcCatalog,
OAWCHAR * pcGranteeName)
The following parameters are synonymous:
This parameter...
Is synonymous to this parameter...
szQualifier
pcCatalog
szGranteeName
pcGranteeName
Table 135. Parameters for dam_getNextGrantee/dam_getNextGranteeW
Parameter
Type
Description
IN
hstmt
DAM_HSTMT
The statement handle.
OUT
pcCatalog
char *
OAWCHAR *
The name of the catalog. Pass in a buffer of 128 characters.
pcGranteeName
char *
OAWCHAR *
The name is one of the following:
*user name
*role name
*DAM_PUBLIC_USER_NAME - to indicate that the grantee is PUBLIC
Pass in a buffer of 128 characters.
RETURN
int
DAM_SUCCESS - on success
DAM_FAILURE - on failure
DAM_NO_DATA_FOUND - on end of list when no data is retrieved