skip to main content
Interface Provider class : ipfuncxxx
 

ipfuncxxx

The IP must implement any function it has registered for handling custom scalar functions. When a scalar function is identified in a query, the OpenAccess SDK SQL engine first tries to find a match from its built-in functions. If it doesn't find a match, then it searches in the list of function registered by the IP as part of the INIT_SCALAR operation. If the OpenAccess SDK SQL engine finds a match in the IP registered list of scalar functions, it calls that function. Otherwise, an error is reported.
Refer to the DataDirect OpenAccess SDK SQL Engine Programmer's Guide for more information on OpenAccess SDK built-in and IP-defined scalar function processing.
long ip_func_xxx(
    long hstmt,
    long pMemTree
    long hValExpList)
Table 20. Parameters for ip_func_xxx
Parameter
Type
Description
INPUT
hstmt
long
The statement handle of the currently active statement.
pMemTree
long
The tree to be used for any memory allocation.
hValExpList
long
List of input arguments to be used by the function. This list is traversed and accessed using the OpenAccess SDK SQL engine functions dam_getFirstValExp, dam_getValueTypeOfExp, and dam_getNextValExp.
RETURN
long
valid DAM_HVAL - create an output value using the dam_createVal function.
0 - on failure

See also

*dam_getFirstValExp
*dam_getNextValExp
*dam_getValueTypeOfExp