The mi_fp_funcname() function

The mi_fp_funcname() function obtains the name of a user-defined routine (UDR) using its associated MI_FPARAM structure.

Syntax

mi_string *mi_fp_funcname (fparam_ptr)
   MI_FPARAM *fparam_ptr;
fparam_ptr
A pointer to the associated MI_FPARAM structure.
Valid in client LIBMI application? Valid in user-defined routine?
No Yes

Usage

The mi_fp_funcname() function obtains the routine name for the UDR that is associated with the fparam_ptr MI_FPARAM structure. The routine name is the SQL name of the UDR, stored in the procname column of the sysprocedures system catalog table. It is not the name of the C function that implements it. The function allocates memory (in the current memory duration) for the copy of the routine name that it returns.

This function is useful for UDRs that need to determine the routine name at runtime in an efficient way.

For more information about UDR information in an MI_FPARAM structure, see the HCL OneDB™ DataBlade® API Programmer's Guide.

Return values

An mi_string pointer
A pointer to a string that contains the name of the user-defined routine.
NULL
The function was not successful.