Parameter
|
Type
|
Description
|
INPUT
|
||
hstmt
|
long
|
The statement handle.
|
OUTPUT
|
||
phIndex
|
long
|
The handle of the index identified as optimal for the statement. This value is 0 if no optimal index was identified. Use the method dam_describeIndex to get details about the index. Use dam_getFirstIndexCol, dam_getNextIndexCol, and dam_describeIndexCol to get details about the columns in the index.
Your IP code must create this object before calling this method.
|
phSetOfCondList
|
long
|
If an optimal index is found, this is a handle to the set of conditions that are present in the query. (Otherwise, this is 0.) Navigate it by using the dam_getFirstCondList and dam_getNextCondList methods.
Your code must create this object before calling this method.
The IP must call dam_freeSetOfConditionList to free this handle when finished with the query.
|
RETURN
|
||
int
|
Status of the call:
DAM_SUCCESS - on success
DAM_FAILURE - error
|