The mi_funcarg_isnull() function

The mi_funcarg_isnull() function determines whether the companion-UDR argument of a cost or selectivity function contains the SQL NULL value.

Syntax

mi_boolean mi_funcarg_isnull(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_isnull() function determines whether the argument from the MI_FUNCARG structure that funcarg_ptr references contains the SQL NULL value. The MI_FUNCARG structure describes an argument of an expensive UDR to its cost or selectivity function. Use the mi_funcarg_isnull() function only for companion-UDR arguments that are constant values; that is, only arguments for which the mi_funcarg_get_argtype() function returns the MI_FUNCARG_CONSTANT value.

Use the mi_funcarg_isnull() function in a cost or selectivity function to determine if the value of an argument passed into the companion UDR is the SQL NULL value.

Return values

MI_TRUE
The companion-UDR argument contains the SQL NULL value.
MI_FALSE
The companion-UDR argument does not contain the SQL NULL value.
MI_ERROR
The function was not successful.