skip to main content
OpenAccess SDK SQL Engine Core Functions API : Function Reference : dam_getFirstGrantedObject/dam_getFirstGrantedObjectW
 

dam_getFirstGrantedObject/dam_getFirstGrantedObjectW

These functions are used to navigate the granted object list in the GRANT and REVOKE commands of the IP DCL function. The object can be a table, view or procedure.
int dam_getFirstGrantedObject(
DAM_HSTMT hstmt,
char * szQualifier,
char * szOwner,
char * szName)

int dam_getFirstGrantedObjectW(
DAM_HSTMT hstmt,
OAWCHAR *szQualifier,
OAWCHAR *szOwner,
OAWCHAR *szName)
Note: The following parameters are synonymous:
This parameter...
Is synonymous to this parameter...
szQualifier
pcCatalog
szOwner
pcSchema
szName
pcObjName
Table 112. Parameters for dam_getFirstGrantedObject and dam_getFirstGrantedObjectW
Parameter
Type
Description
IN
hstmt
DAM_HSTMT
The statement handle.
OUT
szQualifier
char *
The qualifier of the object. Pass in a buffer of 128 characters.
szOwner
char *
The owner of the object. Pass in a buffer of 128 characters.
szName
char *
The name of the object. 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