Product Documentation

FairCom Direct SQL for C and C++

Previous Topic

Next Topic

ctsqlSetDateParameter

Declaration

CTSQLRET ctsqlDECL ctsqlSetDateParameter(pCTSQLCMD hCmd, INTEGER index, BIT isnull, SQLDATE* buffer);

Description

Sets the Date value for a parameter.

  • hCmd the command handle.
  • index the parameter number to be set. The value must be greater or equal to zero but less than the parameter count.
  • isnull TRUE indicates a NULL value.
  • buffer buffer containing the parameter value. buffer can be NULL if isnull is TRUE.

Return Values

ctsqlSetParameter() return CTSQLRET_OK on success.

Symbolic Constant

Explanation

SQL_ERR_BADPARAM

Bad parameter specification for the statement.

SQL_ERR_INTYPES

Inconsistent types.

See Also

ctsqlSetIntegerParameter(), ctsqlSetBigIntParameter(), ctsqlSetNumericParameter(), ctsqlSetFloatParameter(), ctsqlSetTimeParameter(), ctsqlSetTimeStampParameter(), ctsqlSetNCharParameter(), ctsqlSetBinaryParameter()

TOCIndex