Product Documentation

FairCom Direct SQL for C and C++

Previous Topic

Next Topic

ctsqlSetBinaryParameter

Declaration

CTSQLRET ctsqlDECL ctsqlSetBinaryParameter(pCTSQLCMD hCmd, INTEGER index, BIT isnull, void* buffer, INTEGER size);

Description

Sets the Binary value of 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.
  • size The size of the buffer.

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(), ctsqlSetDateParameter(), ctsqlSetTimeParameter(), ctsqlSetTimeStampParameter(), ctsqlSetNCharParameter()

TOCIndex