Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.0 » UltraLite - C and C++ Programming » API Reference » UltraLite C++ API Reference » UltraLite_RowSchema_iface class

 

GetColumnPrecision function

Synopsis
size_t UltraLite_RowSchema_iface::GetColumnPrecision(
  const ULValue & column_id
)
Parameters
  • column_id   A 1-based ordinal number.

Remarks

Gets the precision of a numeric column.

Returns
  • 0 if the column is not a numeric type or if the column does not exist.
  • Sets SQLE_COLUMN_NOT_FOUND if the column name does not exist.
  • Sets SQLE_DATATYPE_NOT_ALLOWED if the column type is not a numeric column.