|
The mi_td_cast_get() function looks up a registered function by the type descriptors of its source and target data types and returns its function descriptor.
The mi_td_cast_get() function is the function whose source and target data types the source_tdesc and target_tdesc arguments references. It accepts source and target data types as pointers to type descriptors. This function is one of the functions of the Fastpath interface. It is a constructor function for the function descriptor.
The mi_td_cast_get() function performs the following tasks:
The mi_td_cast_get() function allocates a new function descriptor in the PER_COMMAND memory duration.
The cast_status flag can have one of the following constant values.
The following call to mi_td_cast_get() looks for a cast function that converts from an INTEGER to an opaque data type called percent:
See the descriptions of the following functions: mi_cast_get(), mi_fparam_get(), mi_func_desc_by_typeid(), mi_routine_get(), mi_routine_exec(), and mi_routine_end().
For more information on the use of the Fastpath interface, see Calling UDRs with the Fastpath Interface.