skip to main content
OpenAccess SDK SQL Engine Core Functions API : Custom scalar functions : dam_add_custom_scalarEx2
 

dam_add_custom_scalarEx2

This function allows the IP to add information, including the qualifier name, about each custom scalar function. Use this function when the SDK calls OAIP_init_scalar to register custom scalar functions for your IP.
int dam_add_custom_scalarEx2(
XM_Tree * pMemTree,
DAM_HSCALAR_LIST pList,
char * sQualifierName,
Char * sName)
Table 35. Parameters for dam_add_custom_scalarEx2
Parameter
Type
Description
IN
pMemTree
XM_Tree *
The memory tree on which to allocate memory for the new object.
pList
DAM_HSCALAR_LIST
The list to which custom scalar function information is added.
sQualifierName
char *
The name of the function qualifier.
sName
Char *
The name of the custom scalar function.
RETURN
int
DAM_SUCCESS - information was successfully added.
DAM_FAILURE - the operation to add information failed.