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

sqlipGetNumParams

This method returns the number of parameter markers in the prepared statement. If the statement does not have any parameters, the method returns 0. OpenAccess SDK does not require the parameter indicator to be a question mark. The ODBC specification assumes the ‘?’ to be the parameter indicator.
int sqlipGetNumParams(xo_int piNumParams);
 
Table 98: Parameters for sqlipGetNumParams 
Parameter
Type
Description
OUTPUT
 
 
piNumParams
xo_int
Number of parameters. A valid value is required otherwise the OpenAccess SDK layer will report a mismatch in the number of parameter values passed in and the number of parameters in the query reported by this method.
RETURN
 
 
 
int
OADS_SUCCESS
OADS_ERROR