skip to main content
SQL Engine Parse Tree API : SQL Engine Parse Tree functions reference : damex_getSetOfConditionLists
 

damex_getSetOfConditionLists

This function is used in regular IP mode to get the entire search expression without any filtering as a normalized list of condition lists. The IP should use dam_getFirstCondList/ dam_getNextCondList to navigate the list of condition lists and dam_getFirstCond/ dam_getNextCond to navigate each of the condition lists. The IP should use the SQL Parse Tree API to get complete details of each of the conditions.
The IP should not call dam_freeSetOfConditionList on the condition list handle that is returned from this function.
DAM_HSET_OF_CONDLIST damex_getSetOfConditionLists(
    DAM_HQUERY hquery,
    int iType)
Table 229. Parameters for damex_getSetOfConditionLists
Parameter
Type
Description
IN
hquery
DAM_HQUERY
The query handle returned from dam_getQuery.
iType
int
The type of condition list requested:
SQL_SET_CONDLIST_INTERSECT - transform the WHERE clause into a set of AND conditions and return these as a list. This is valid only if IP_SUPPORT_UNION_CONDLIST is set to 0.
SQL_SET_CONDLIST_UNION - transform the WHERE clause into a set of OR conditions and return these as a list. This is valid only if IP_SUPPORT_UNION_CONDLIST is set to 1.
RETURN
DAM_HSET_OF_CONDLIST
The search condition list.
Navigate it by using dam_getFirstCondList and dam_getNextCondList.
A NULL is returned if no search list is available.

See also

*dam_getFirstCond
*dam_getFirstCondList
*dam_getNextCond
*dam_getNextCondList