skip to main content
OpenAccess SDK SQL Engine Core Functions API : Function Reference : dam_evaluateColCond
 

dam_evaluateColCond

This function evaluates a search or restriction condition for the IP. Use it in cases when you have specified support for a condition type but cannot support certain columns.
int dam_evaluateColCond(
DAM_HSTMT hstmt,
DAM_HCOND hcond,
int iXoType,
void * pColVal,
long lColValLen)
Table 94. Parameters for dam_evaluateColCond
Parameter
Type
Description
IN
hstmt
DAM_HSTMT
The statement handle.
hcond
DAM_HCOND
The condition handle.
iXoType
int
Type of the data. The data can be supplied in a format that corresponds to the column's definition in the schema or in any other format and the OpenAccess SDK SQL engine will perform the required conversion.
pColVal
void *
A pointer to the data. The C type of the data should correspond to the iXoType value. See Table 33.
lColValLen
long
Length of the data:
XO_NULL_DATA - indicates a null value.
For VARCHAR, CHAR either the length of the string or XO_NTS if the string is null terminated.
For binary, the length of the data.
RETURN
int
1 - the condition evaluates to true.
0 - the condition evaluates to false.