The EXTFNAPIV4_DESCRIBE_PARM_DISTINCT_VALUES attribute returns whether or not the parameter is constant. Used in a describe_parameter_get scenario.
a_sql_byte
True, if the parameter is a constant for the statement. Valid only for scalar parameters.
Returns 0 if the value of the specified parameter is not a constant; returns 1 if the value of the specified parameter is a constant.
On success, returns the sizeof(a_sql_byte).
Sample _describe_extfn API function code fragment:
if( ctx->current_state >= EXTFNAPIV4_STATE_ANNOTATION ) { desc_rc = ctx->describe_parameter_get( ctx, 1, EXTFNAPIV4_DESCRIBE_PARM_IS_CONSTANT, &desc_byte, sizeof( a_sql_byte ) ); }