Obtain fixed-point type information

The DataBlade® API provides functions to obtain the scale and precision of a fixed-point (DECIMAL and MONEY) data type.

Table 1. DataBlade API functoins that obtain the scale and precision of a fixed-point data type
Source DataBlade API functions
For a data type mi_type_precision(), mi_type_scale()
For a UDR argument mi_fp_argprec(), mi_fp_setargprec(), mi_fp_argscale(), mi_fp_setargscale()
For a UDR return value mi_fp_retprec(), mi_fp_setretprec(), mi_fp_retscale(), mi_fp_setretscale()
For a column in a row (or field in a row type) mi_column_precision(), mi_column_scale()
For an input parameter in a prepared statement mi_parameter_precision(), mi_parameter_scale()