Powered by Zoomin Software. For more details please contactZoomin

DataDirect OpenAccess SDK Help

OASQLIP_set_stmt_info

  • Last Updated: May 12, 2026
  • 1 minute read
    • OpenAccess SDK
    • Version 8.1
    • Documentation

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)

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.

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.
TitleResults for “How to create a CRG?”Also Available inAlert