Powered by Zoomin Software. For more details please contactZoomin

DataDirect OpenAccess SDK Help

ipfuncxxx

  • Last Updated: May 12, 2026
  • 1 minute read
    • OpenAccess SDK
    • Version 8.1
    • Documentation

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 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)

Parameters for ipFuncxxx

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

TitleResults for “How to create a CRG?”Also Available inAlert