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

OASQLIP_set_stmt_info

This function is called by the OpenAccess SDK layer to inform the IP of statement level options such as the maximum number of rows to return and query timeout. Optionally, this information can be used by the IP in its processing.
int OASQLIP_set_stmt_info(
SQLIP_HSTMT sqlip_hstmt,
OADS_INTEGER iInfoType,
OADS_POINTER CharValue,
OADS_INTEGER iValueLen,
OADS_LEN NumericValue)
 
Table 50: Parameters for OASQLIP_set_stmt_info 
Parameter
Type
Description
INPUT
 
 
sqlip_hstmt
SQLIP_HSTMT
Statement handle
iInfoType
OADS_INTEGER
Information type.
CharValue
OADS_POINTER
String value for iInfoType that is sent as a string.
iValueLen
OADS_INTEGER
Length of the string value in CharValue (bytes).
NumericValue
OADS_LEN
Integer value for iInfoType that are sent as integers.
RETURN
 
 
 
int
OADS_SUCCESS – if you are able to successfully apply the option or if you want to ignore the options.
OADS_ERROR – if error in handling the requested option for which you do have support.
The following table describes the options for the OASQLIP_set_stmt_info function.
 
Table 51: OASQLIP_set_stmt_info Options 
ilnfoType
Description
OADS_STMT_INFO_QUERY_TIMEOUT
Seconds to wait for query to finish executing. A value of 0 indicates no limit. The value is supplied in NumericValue.
OADS_STMT_INFO_MAX_ROWS
Maximum number of rows to return. A value of 0 indicates no limit. The value is supplied in NumericValue.