ctsqlSetTimeout
Declaration
CTSQLRET ctsqlDECL ctsqlSetTimeout(pCTSQLCMD hCmd, INTEGER timeout);
Description
ctsqlSetTimeout() sets the timeout value associated with the command handle.
FairCom DB SQL supports a timeout option for executing a query. This feature can ensure that an unintended query statement does not consume excessive processing time of FairCom DB SQL.
Negative values are not accepted and will generate a CTSQLRET_BADARG error.
Return Values
ctsqlSetTimeout() returns CTSQLRET_OK on success.
Symbolic Constant |
Explanation |
SQL_ERR_BADARG |
Bad arguments |
See Also
ctsqlSetTimeout()