Powered by Zoomin Software. For more details please contactZoomin

DataDirect OpenAccess SDK Help

dam_evaluateColCond

  • Last Updated: May 12, 2026
  • 1 minute read
    • OpenAccess SDK
    • Version 8.1
    • Documentation

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)

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 SQL Engine Data Types and the Corresponding C Types.
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.
TitleResults for “How to create a CRG?”Also Available inAlert