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

dam_getSetOfCustomConditionLists

This function is used to retrieve custom conditions lists from the Where clause.
DAM_HSET_OF_CONDLIST dam_getSetOfCustomConditionLists(
DAM_HSTMT hstmt,
int * pbPartialLists)
Table 36. Parameters for dam_getSetOfCustomConditionLists
Parameter
Type
Description
IN
hstmt
DAM_HSTMT
The statement handle.
OUT
pbPartialLists
int *
TRUE - the custom condition list provided to the IP is a partial list. This happens in cases where:
*A custom scalar function is an operand in a condition and another operand is not a column of the table.
*A custom scalar function is used with non-literal parameters.
*A custom scalar function is in an expression.
*A custom scalar function in a JOIN is bound by the OR operator.
The IP cannot mark all custom condition lists as evaluated, so the IP should return an error.
FALSE - the condition list provided to the IP contains the full expression.
RETURN
DAM_HSET_OF_CONDLIST
The search custom condition list. Navigate it using dam_getFirstCondList and dam_getNextCondList. A NULL is returned if no search list is available. The IP must call dam_freeSetOfConditionList to this handle when done.