Product Documentation

FairCom Direct SQL for C and C++

Previous Topic

Next Topic

ctsqlSetParameterScale

Change the parameter scale value.

Declaration

CTSQLRET ctsqlSetParameterScale(pCTSQLCMD hCmd, INTEGER index, SMALLINT scale)

Description

ctsqlSetParameterScale() changes the parameter scale value. The parameter scale represents the number of decimal digits in a parameter.

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

Return

ctsqlSetParameterScale() returns CTSQLRET_OK on success.

Symbolic Constant

Explanation

SQL_ERR_BADPARAM

Bad parameter specification for the statement.

See Also

ctsqlSetParameter(), ctsqlSetParameterPrecision()

TOCIndex