The mi_funcarg_get_datatype() function
The mi_funcarg_get_datatype() function returns the type identifier for the data type of an argument for the companion UDR of a cost or selectivity function.
Syntax
MI_TYPEID *mi_funcarg_get_datatype(funcarg_ptr)
MI_FUNCARG *funcarg_ptr;
- funcarg_ptr
- A pointer to the MI_FUNCARG structure that describes the companion-UDR argument.
Valid in client LIBMI application? | Valid in user-defined routine? |
---|---|
No | Yes |
Usage
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 a companion 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 companion UDR.
Return values
- An MI_TYPEID pointer
- This value points to a type identifier for the data type of the companion-UDR argument.
- NULL
- The function was not successful.