Define a statistics-display function

When you declare your statistics-display function, it must have the following signature:
mi_lvarchar *statprint(udt_arg, stat_arg)
   udt_type *udt_arg;
   mi_statret *stat_arg;
udt_arg
A pointer to a dummy argument. The database server uses this argument to resolve the function and to pass in column values.
stat_arg
A pointer to the mi_statret structure that contains the statistics information for the user-defined data type.
BladeSmith automatically generates an OpaqueStatPrint() function (in which Opaque is the name of your opaque data type) with the following declaration:
mi_lvarchar *OpaqueStatCollect(Gen_dummy, Gen_bvin)
   void *Gen_dummy;
   mi_lvarchar *Gen_bvin;

If this declaration is not appropriate for your opaque type, you must customize the OpaqueStatPrint() function.


Copyright© 2019 HCL Technologies Limited