skip to main content
IP API Reference for C/C++ : IP API for C/C++ : OASQLIP_open_next_cursor
 

OASQLIP_open_next_cursor

This function is called if the OASQLIP_get_stmt_info function reports that the statement has more results. If the statement has more results pending, then it moves to the next result. A call to OASQLIP_get_numcols after calling this function returns the description of this new cursor.
int OASQLIP_open_next_cursor(
SQLIP_HSTMT sqlip_hstmt,
OADS_LEN * piNumResRows)
 
Table 39: Parameters for OASQLIP_open_next_cursor 
Parameter
Type
Description
INPUT
 
 
sqlip_hstmt
SQLIP_HSTMT
Statement handle.
OUTPUT
 
 
piNumResRows
OADS_LEN *
Number of rows in the cursor or the number of rows affected for data modifying query. If the statement results in a cursor and the number of rows in the cursor cannot be determined, then return –1.
RETURN
 
 
 
int
OADS_SUCCESS
OADS_NO_DATA – no more result sets available
OADS_ERROR – error opening next cursor

See also 

OASQLIP_get_stmt_info
OASQLIP_get_numcols