skip to main content
Interface Provider API : Reference : OAIP_init_scalar
 

OAIP_init_scalar

This IP function is called by the OpenAccess SDK SQL engine to get the list of scalar functions supported by the IP. This function is called by the OpenAccess SDK SQL engine once per connection. The IP should call dam_add_scalar or dam_add_scalarEx to add details for each of the custom scalar functions it supports.
int OAIP_init_scalar(
    IP_HDBC            hdbc,
    XM_Tree        * pMemTree,
    DAM_HSCALAR_LIST  pList)
Table 18. Parameters for OAIP_init_scalar
Parameter
Type
Description
IN
hdbc
IP_HDBC
A pointer to connection information maintained by the IP.
pMemTree
XM_Tree
The tree to use for allocating items with xm_allocItem call.s
pList
DAM_HSCALAR_LIST
The list to which scalar function information is to be added.
RETURN
int
DAM_SUCCESS - on success
DAM_FAILURE - on failure

See also

*dam_add_scalar
*dam_add_scalar