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 functions 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 OpenAccess SDK SQL Engine Programmer’s Guide for more information on OpenAccess SDK built-in and IP-defined scalar function processing.
int64 ipFuncxxx(
int64 hstmt,
int64 pMemTree
int64 hValExpList)
Parameters for ipFuncxxx
| Parameter | Type | Description |
| IN | ||
| hstmt | int64 | The statement handle of the currently active statement |
| pMemTree | int64 | The tree to be used for any memory allocation |
| hValExpList | int64 | 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_getValueOfExp, and dam_getNextValExp. |
| RETURN | ||
| int64 | valid DAM_HVAL – create an output value using the dam_createVal function NULL – on failure |