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

damex_describeCaseElem

This function retrieves the details of the WHEN-THEN Case expression. The WHEN-THEN expression has one of the following formats:
1. Simple Case
WHEN when_expression THEN result_expression
2. Searched Case
WHEN boolean_expression THEN result_expression

Syntax

int damex_describeCaseElem(
DAM_HCASE_ELEM hCaseElem,
DAM_HVALEXP * phWhenValExp,
DAM_HLOGEXP * phWhenBoolExp,
DAM_HVALEXP * phResValExp)
Table 184. Parameters for damex_describeCaseElem
Parameter
Type
Description
IN
hCaseElem
DAM_HCASE_ELEM
Element handle of the WHEN-THEN expression.
OUT
phWhenValExp
DAM_HVALEXP *
The handle to the WHEN value expression. This value is set only when the Case is a simple Case expression.
phWhenBoolExp
DAM_LOGEXP *
The handle to the WHEN boolean expression. This value is set only when the Case is a searched Case expression.
phResValExp
DAM_HVALEXP *
The handle to the result expression.
RETURN
int
DAM_SUCCESS - on success
DAM_FAILURE - on failure