The mi_fp_getfuncid() function

The mi_fp_getfuncid() accessor function obtains the routine identifier for a user-defined routine (UDR) in its associated MI_FPARAM structure.

Syntax

mi_funcid mi_fp_getfuncid(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_getfuncid() function obtains the routine identifier for the user-defined routine that is associated with the fparam_ptr MI_FPARAM structure. The routine identifier uniquely identifies the UDR within the database. This function is useful to determine the name of the UDR that is currently executing or that is about to be called.

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

Return values

>=0
The routine identifier of the UDR associated with the specified MI_FPARAM structure.
MI_ERROR
The function was not successful.