ctsqlSetParameterAsString
Set parameter for all types except BINARY.
Declaration
CTSQLRET ctsqlDECL ctsqlSetParameterAsString(pCTSQLCMD hCmd, INTEGER index, CTSQLCHAR* buffer)
Parameters:
Date string must be: yyyy-MM-dd
Time string must be: hh:mm:ss
Timestamp string must be: yyyy-MM-dd hh:mm:ss
Description
The Direct SQL API (ctsqlapi) requires that query parameters are set using the proper C-language type for the underlying SQL data type. This can be difficult in some languages, such as Python. In these languages, it is more convenient to use strings and let the logic determine the parameter type and perform the proper conversion.
Return
Return CTSQLRET_OK on success.