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

OASQLIP_get_numparams

This function returns the number of parameter markers in the prepared statement. If the statement does not have any parameters, the function 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 OASQLIP_get_numparams(
SQLIP_HSTMT sqlip_hstmt,
OADS_INTEGER * piNumParams)
 
Table 33: Parameters for OASQLIP_get_numparams 
Parameter
Type
Description
INPUT
 
 
sqlip_hstmt
SQLIP_HSTMT
Statement handle
OUTPUT
 
 
piNumParams
OADS_INTEGER *
Number of parameters. A valid value is required. Otherwise, the OpenAccess SDK layer reports 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