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

dam_add_custom_scalar

This function allows the IP to add information 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_scalar(
XM_Tree * pMemTree,
DAM_HSCALAR_LIST pList,
Char * sName)
Table 34. Parameters for dam_add_custom_scalar
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.
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.