The EXTFNAPIV4_DESCRIBE_PARM_SCALE attribute indicates the scale of a parameter. Used in a describe_parameter_get scenario.
a_sql_uint32
The scale of a parameter to a UDF. For arithmetic data types, parameter scale is the number of digits to the right of the decimal point in a number.
This attribute is not valid for:
Gets the scale of the parameter as defined in the CREATE PROCEDURE statement.
On success, returns the size of (a_sql_uint32).
Sample _describe_extfn API function code fragment that gets the scale of parameter 1:
if( cntxt->current_state > EXTFNAPIV4_STATE_ANNOTATION ) { a_sql_uint32 scale = 0; a_sql_int32 ret = 0; ret = ctx->describe_parameter_get( ctx, 1, EXTFNAPIV4_DESCRIBE_PARM_SCALE, &scale, sizeof(a_sql_uint32) ); if( ret <= 0 ) { // Handle the error. } }