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

damex_describeUnionQuery

This function returns the handle to the UNION query.
int damex_describeUnionQuery(
    DAM_HQUERY hquery,
    int * piUnionType,
    DAM_HQUERY * phUnionQuery)
Table 200. Parameters for damex_describeUnionQuery
Parameter
Type
Description
IN
hquery
DAM_HQUERY
The query handle.
OUT
piUnionType
int *
Indicates if UNION is specified as UNION ALL. Valid value are:
*TRUE - indicates that all results should be returned without checking for duplicates
*FALSE - indicates that distinct UNION results should be returned.
phUnionQuery
DAM_HQUERY *
Handle to the UNION query. Returns NULL if query does not have a UNION.
RETURN
int
DAM_SUCCESS - on success
DAM_FAILURE - on failure