|
The mi_func_desc_by_typeid() function looks up a registered user-defined routine by its routine identifier and returns its function descriptor.
The mi_func_desc_by_typeid() function creates a function descriptor for the UDR that the routine_id argument specifies. The routine_id argument provides the routine identifier of the UDR. The function is one of the functions of the Fastpath interface. It is a constructor function for the function descriptor.
Tip: The DataBlade API provides the mi_funcid data type to hold routine identifiers. The mi_funcid data type has the same structure as the mi_integer data type. For backward compatibility, some DataBlade API functions still assume that routine identifiers are of type mi_integer.
This function performs the following tasks:
The mi_func_desc_by_typeid() function allocates a new function descriptor in the PER_COMMAND memory duration.
See the descriptions of the following functions: mi_routine_end(), mi_routine_exec(), mi_routine_get(), mi_routine_get_by_typeid(), and mi_routine_id_get().