Parameter
|
Type
|
Description
|
IN
|
||
hstmt
|
DAM_HSTMT
|
The OpenAccess SDK SQL engine statement handle.
|
pMemTree
|
XM_Tree *
|
The memory tree to be used for all memory allocation.
|
iType
|
int
|
The type of schema information requested.
DAMOBJ_TYPE_PROC_COLUMN - procedure columns information as defined by OA_PROCCOLUMNS.
|
pSearchObj
|
DAM_OBJ
|
Contains the information about search conditions for the requested object type. This information is used by the IP and by the OpenAccess SDK SQL engine to filter out the information returned by the IP. For example, if OpenAccess SDK SQL engine only needs the columns for a specific table, it sets the table_name in the pSearchObj. The IP must use this information or pass the pSearchObj to the OpenAccess SDK SQL engine when calling the dam_add_damobj_xxxxx functions. It is NULL if no search criteria is specified.
For example, if the user issues the query:
SELECT * FROM oa_tables
then pSearchObj is NULL and the IP should return all the table objects. Access this data by typecasting this pointer based on the requested object type (iType) and then accessing the members of the structure to retrieve the required information:
DAMOBJ_TYPE_PROC - damobj_proc *
|
OUT
|
||
pList
|
DAM_OBJ_LIST
|
Requested object(s) are returned by placing them in this list using the dam_add_damobj_xxxxx() calls. The IP can pass the pSearchObj filter to dam_add_obj() to have the OpenAccess SDK SQL engine filter the objects before adding to the list.
|
RETURN
|
||
int
|
DAM_SUCCESS - on success
DAM_FAILURE - on failure
|
Parameter
|
Type
|
Description
|
IN
|
||
hstmt
|
DAM_HSTMT
|
The OpenAccess SDK SQL engine statement handle.
|
pMemTree
|
XM_Tree *
|
The memory tree to be used for all memory allocation.
|
iType
|
int
|
The type of schema information requested:
DAMOBJ_TYPE_PROC_COLUMN - procedure columns information as defined by OA_PROCCOLUMNS.
|
pSearchObj
|
DAM_OBJ
|
Contains the information about search conditions for the requested object type. This information is used by the IP and by the OpenAccess SDK SQL engine to filter out the information returned by the IP.
For example, if the OpenAccess SDK SQL engine only needs the columns for a specific table, it sets the table_name in the pSearchObj. The IP must use this information or pass the pSearchObj to the OpenAccess SDK SQL engine when calling the dam_add_damobj_xxxxxW functions. It is NULL if no search criteria is specified.
For example, if the user issues the query:
SELECT * FROM oa_tables
then pSearchObj is NULL and the IP should return all table objects. Access this data by typecasting this pointer based on the requested object type (iType) and then accessing the members of the structure to retrieve the required information:
DAMOBJ_TYPE_PROC - damobj_procW *
|
OUT
|
||
pList
|
DAM_OBJ_LIST
|
Requested object(s) are returned by placing them in this list using the dam_add_damobj_xxxxW function calls.
The IP can pass the pSearchObj filter to the dam_add_damobj_xxxxW functions to have the OpenAccess SDK SQL engine filter the objects before adding to the list.
|
RETURN
|
||
int
|
DAM_SUCCESS - on success
DAM_FAILURE - on failure
|