Parameter
|
Type
|
Description
|
IN
|
||
hstmt
|
DAM_HSTMT
|
Statement handle.
|
OUT
|
||
phIndex
|
DAM_HINDEX *
|
The handle of the index identified as the optimal for the statement. This value is NULL if no optimal index was identified. Use the function dam_describeIndex to get details about the index, and dam_getFirstIndexCol, dam_getNextIndexCol, and dam_describeIndexCol to get details about the columns making up the index.
|
phSetOfCondList
|
DAM_HSET_OF_CONDLIST *
|
If an optimal index is found, then this is a handle to the set of conditions that are present in the query. Otherwise this is NULL. Navigate it by using the dam_getFirstCondList and dam_getNextCondList functions.
The IP must call dam_freeSetOfConditionList to this handle when finished with the query.
|
RETURN
|
||
int
|
Status of the call:
DAM_SUCCESS - on success
DAM_FAILURE - error
|