|
The mi_funcarg_get_datatype() returns the data type of an argument for the expensive UDR of a cost or selectivity function.
The mi_funcarg_get_datatype() function returns the data type of the argument from the MI_FUNCARG structure that funcarg_ptr references. The MI_FUNCARG structure describes an argument of an expensive UDR to its cost or selectivity function. The function returns this data type as a type identifier (MI_TYPEID). Use the mi_funcarg_get_datatype() function in a cost or selectivity function to obtain the data type of an argument passed into the expensive UDR.
MI_TYPEID * | points to a type identifier for the data type of the expensive-UDR argument. |
NULL | indicates that the function was not successful. |
See the descriptions of the following functions: mi_funcarg_get_argtype(), mi_funcarg_get_colno(), mi_funcarg_get_constant(), mi_funcarg_get_datalen(), mi_funcarg_get_distrib(), mi_funcarg_get_routine_id(), mi_funcarg_get_routine_name(), mi_funcarg_get_tabid(), and mi_funcarg_isnull().
For more information, see Creating Selectivity and Cost Functions.