The mi_funcarg_get_datalen() function

The mi_funcarg_get_datalen() function returns the data length of an argument for the companion UDR of a cost or selectivity function.

Syntax

mi_integer mi_funcarg_get_datalen(funcarg_ptr)
   MI_FUNCARG *funcarg_ptr;
funcarg_ptr
A pointer to the MI_FUNCARG structure that describes the companion-UDR argument.
Valid in client LIBMI application? Valid in user-defined routine?
No Yes

Usage

The mi_funcarg_get_datalen() function returns the data length of the argument from the MI_FUNCARG structure that funcarg_ptr references. The MI_FUNCARG structure describes an argument of a companion UDR to its cost or selectivity function. Use the mi_funcarg_get_datalen() function in a cost or selectivity function to obtain the data length of an argument passed into the expensive UDR.

Return values

>= 0
The data length for the companion-UDR argument.
MI_ERROR
The function was not successful.