|
The mi_fp_setreturnisnull() accessor function sets the value of a return value of a user-defined function to an SQL NULL in its associated MI_FPARAM structure.
The mi_fp_setreturnisnull() function sets the function return value at position ret_pos in the MI_FPARAM structure that fparam_ptr references to the appropriate SQL NULL value. The MI_FPARAM structure stores information about whether function return values are NULL in the zero-based null-return array.
To set the nth return value, use a ret_pos value of n-1.
For example, the following call to mi_fp_setreturnisnull() sets to NULL the first return value of the my_func() UDR, with which fparam1 is associated:
Important: C user-defined functions always have only one return value.
Return Values
None.
See the descriptions of the following functions: mi_fp_argisnull(), mi_fp_setargisnull(), mi_fp_setretlen(), mi_fp_setretprec(), mi_fp_setretscale(), and mi_fp_setrettype().