mi_integer mi_fp_getcolid(fparam_ptr)
MI_FPARAM *fparam_ptr;
The mi_fp_getcolid( ) function obtains the column identifier for the user-defined routine that is associated with the fparam_ptr MI_FPARAM structure. The column identifier is the location of the column within the row structure (with the first column starting at offset 0). The column identifier and row structure identify the column with which the UDR invocation is associated. To obtain the row structure, use the mi_fp_getrow( ) function.
This function is only valid within an assign( ), destroy( ), or import support function for an opaque data type that contains smart large objects and for multirepresentational opaque types. Before executing the assign( ), destroy( ), or import function of an opaque data type, the database server automatically obtains the column identifier and row structure and stores them in the MI_FPARAM structure.
With the mi_fp_getcolid( ) function, you can implement delayed creation or removal of a smart large object:
This function returns the column identifier for the column into which you want to store the opaque type.
This function obtains the column identifier for the column from which you want to remove the opaque type.
See also the descriptions of mi_fp_getrow( ), mi_fp_setcolid( ), and mi_lo_colinfo_by_ids( ).
For more information about UDR information in an MI_FPARAM structure, see the IBM Informix: DataBlade API Programmer's Guide.