skip to main content
IP API Reference for Java : Statement-level Methods for Java : sqlipGetInfo
 

sqlipGetInfo

This method is called by the OpenAccess SDK layer to request information from the IP.
int sqlipGetInfo(
int iInfoType,
StringBuffer sInfoValue);
 
Table 95: Parameters for sqlipGetInfo 
Parameter
Type
Description
INPUT
 
 
iInfoType
int
Option – see Table 96.
OUTPUT
 
 
sInfoValue
StringBuffer
Buffer to return the data into.
RETURN
 
 
 
int
OADS_SUCCESS – if the requested option is supported.
OADS_ERROR – error occurred in obtaining the requested information.
The following table defines the options for get_info.
 
Table 96: get_info Options 
iInfoType
Description
OADS_STMT_INFO_NEXT_RESULT_SET_AVAILABLE (1)
Checks if more result sets are available for the current statement.
Returns an integer value of 1 if more result sets are available, otherwise, returns 0. Returning a 1 will result in the sqlipOpenNextCursor method being called.
OADS_STMT_INFO_OUTPUT_RESULT_SET_AVAILABLE (2)
Reports whether the current statement had a return code and/or output parameters. Returns an integer value of 1 if yes, otherwise return 0. Returning a 1 results in the sqlipOpenOutputCursor being called.
OADS_STMT_INFO_QUERY_TIMEOUT (3)
Return the query time out setting in seconds. Return an integer value.
OADS_STMT_INFO_MAX_ROWS (5)
Returns the maximum number of rows setting. Return an integer value.
SQLDRV_INFO_NEXT_RESULT_SET_AVAILABLE (1)
Checks whether more result sets are available for the current statement.
If more result sets are available, return a value of 1. The open_next_cursor method will be called.
Otherwise, return 0.
SQLDRV_INFO_OUTPUT_RESULT_SET_AVAILABLE (2)
Reports whether the current statement had a return code and/or output parameters.
if yes, return a value of 1. This results in the open_output_cursor being called.
Otherwise, return 0.