Product Documentation

FairCom Direct SQL for C and C++

Previous Topic

Next Topic

ctsqlSetParameterPrecision

Change the precision value of a parameter.

Declaration

CTSQLRET ctsqlSetParameterPrecision(pCTSQLCMD hCmd, INTEGER index, SMALLINT precision)

Description

ctsqlSetParameterPrecision() changes the parameter’s precision value. The parameter precision represents the total number of digits in a BCD number represented in a parameter.

  • hCmd the command handle.
  • index the parameter number. Must be a number greater or equal zero, but less than parameter count.
  • precision precision value

Return

ctsqlSetParameterPrecision() returns CTSQLRET_OK on success.

Symbolic Constant

Explanation

SQL_ERR_BADPARAM

Bad parameter specification for the statement.

See Also

ctsqlSetParameter(), ctsqlSetParameterScale()

TOCIndex