Parameter
|
Type
|
Description
|
IN
|
|
|
hstmt
|
int64
|
The statement handle of the currently active statement
|
OUT
|
|
|
iType
|
int
|
Type of operation requested:
• DAM_PROCEDURE – execute the stored procedure and return the first set of rows or all the rows. If the IP is written to work in cursor mode, return DAM_SUCCESS_WITH_RESULT_PENDING after returning a block of rows
• DAM_FETCH – get next set of rows. Return DAM_SUCCESS_WITH_RESULT_PENDING when more rows are pending. Return DAM_SUCCESS when completed.
• DAM_CLOSE – cleanup processing of the stored procedure
|
piNumResRows
|
long
|
The number of rows affected by this operation
|
RETURN
|
|
|
|
int
|
DAM_SUCCESS – on success
DAM_FAILURE – on failure
|