Parameter
|
Type
|
Description
|
IN
|
||
hstmt
|
DAM_HSTMT
|
The statement handle.
|
hcond
|
DAM_HCOND
|
The condition handle.
|
iCondPart
|
int
|
The condition part (left or right) for which details are being requested. Pass one of the following:
DAM_COND_PART_LEFT
DAM_COND_PART_RIGHT
|
OUT
|
||
piOpType
|
int *
|
The operator type. See Table 80 for the operators and descriptions of the associated values. When details of a right part are requested for condition that does not have a right part, piOpTyp is set to 0.
|
ppData
|
void **
|
A pointer to the data. The C type of the data corresponds to the piXoType value. This value is NULL for col=NULL condition. See Table 33.
|
piXoType
|
int *
|
The data type.
|
piDataLen
|
int *
|
The length of the data. XO_NULL_DATA indicates a NULL value.
|
phVal
|
DAM_HVAL *
|
A pointer to DAM_HVAL. Non-NULL handle is returned when OpenAccess SDK SQL engine creates temporary value for returning value of the expressions in the condition. IP should call dam_freeVal(*phVal) to release memory after using the condition value from ppData.
|
RETURN
|
||
Int
|
DAM_SUCCESS - valid condition returned.
DAM_FAILURE - error getting a condition because the arguments to the call are invalid or the format of the data in the condition cannot be converted to the column type.
|
Operator
|
Description
|
SQL_OP_SMALLER
|
Column value should be smaller than. This bit is set if <, <=, or BETWEEN predicates are used in the SQL query.
|
SQL_OP_GREATER
|
Column value should be greater than. This bit is set if >, >=, or BETWEEN predicates are used in the SQL query.
|
SQL_OP_LIKE
|
Column value should be LIKE. The ppRightData contains a valid pointer to XO_TYPE_CHAR data if an ESCAPE clause was used with LIKE.
|
SQL_OP_ISNULL
|
Column value should be NULL.
|
SQL_OP_EQUAL
|
Column Value should be equal. This bit is set if <=, >=, or BETWEEN predicates are used in the SQL query.
|
SQL_OP_NOT
|
This operator, which occurs in combination with either SQL_OP_NULL or SQL_OP_EQUAL, implies that the column value should not be NULL or the column value should not be EQUAL.
|