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

damex_describeLogicExp

This function is used to retrieve the description of a logical expression.
int damex_describeLogicExp(
    DAM_HLOGEXP hLogExp,
    int * piType,
    DAM_HLOGEXP * phLeftLogExp,
    DAM_HLOGEXP * phRightLogExp,
    DAM_HCOND * phCond)
Table 190. Parameters for damex_describeLogicExp
Parameter
Type
Description
IN
hLogExp
DAM_HLOGEXP
The logical expression handle.
piType
int *
Type of the logical expression:
*SQL_EXP_COND - simple condition
*SQL_EXP_AND - AND expression
*SQL_EXP_OR - OR expression
*SQL_EXP_NOT - NOT expression
OUT
phLeftLogExp
DAM_HLOGEXP *
The handle to the left logical expression. This value is set when the type of the input logical expression is SQL_EXP_AND, SQL_EXP_OR, SQL_EXP_NOT.
phRightLogExp
DAM_HLOGEXP *
The handle to the right logical expression. This value is set when the type of the input logical expression is SQL_EXP_AND, SQL_EXP_OR.
phCond
DAM_HCOND *
The handle to the condition. This value is set when the type of the input logical expression is SQL_EXP_COND.
RETURN
int
DAM_SUCCESS - on success
DAM_FAILURE - on failure