|
The mi_cast_get() function looks up a registered function by the type identifiers of its source and target data types and returns its function descriptor.
The mi_cast_get() function whose source and target data types the source_type and target_type arguments references. It accepts source and target data types as pointers to type identifiers. This function is one of the functions of the Fastpath interface. It is a constructor function for the function descriptor.
The mi_cast_get() function performs the following tasks:
The mi_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_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_fparam_get(), mi_routine_get(), mi_routine_exec(), mi_routine_end(), and mi_td_cast_get().
For more information on the use of the Fastpath interface, see Calling UDRs with the Fastpath Interface.