skip to main content
OpenAccess SDK SQL Engine Core Functions API : Function Reference : dam_getFirstGrantee/dam_getFirstGranteeW
 

dam_getFirstGrantee/dam_getFirstGranteeW

These functions are used to navigate the granted user list in the GRANT and REVOKE commands of the IP DCL function. The dam_getFirstGranteeW function is used for Unicode.
int dam_getFirstGrantee(
DAM_HSTMT hstmt,
char * pcCatalog,
char * pcGranteeName)

int dam_getFirstGranteeW(
DAM_HSTMT hstmt,
OAWCHAR * pcCatalog,
OAWCHAR * pcGranteeName)
Table 113. Parameters for dam_getFirstGrantee/dam_getFirstGranteeW
Parameter
Type
Description
IN
hstmt
DAM_HSTMT
The statement handle.
OUT
pcCatalog
char *
OAWCHAR *
The name of the catalog.
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
RETURN
int
DAM_SUCCESS - on success
DAM_FAILURE - on failure
DAM_NO_DATA_FOUND - on end of list when no data is retrieved