ctsqlSetParameter
Set the value of a parameter.
Declaration
CTSQLRET ctsqlSetParameter(pCTSQLCMD hCmd, INTEGER index, CTSQLTYPE ptype, INTEGER length, BIT isnull, void* buffer)
Description
ctsqlSetParameter() sets the value of a parameter. The parameter type must match the expected type as no conversion is provided.
Return
ctsqlSetParameter() returns CTSQLRET_OK on success.
Symbolic Constant |
Explanation |
SQL_ERR_BADPARAM |
Bad parameter specification for the statement. |
SQL_ERR_INTYPES |
Inconsistent types. |
See Also
ctsqlSetParameterScale(), ctsqlSetParameterPrecision()