informix
Informix DataBlade API Programmer's Manual
DataBlade API Function Descriptions

mi_fp_returnisnull()

The mi_fp_returnisnull() accessor function determines whether the return value of a user-defined function is an SQL NULL from its associated MI_FPARAM structure.

Syntax

Usage

The mi_fp_returnisnull() function determines whether the routine return value at position ret_pos in the MI_FPARAM structure that fparam_ptr references contains the SQL NULL value. The MI_FPARAM structure stores information about whether function return values are NULL in the zero-based null-return array. To obtain information about the nth return value, use a ret_pos value of n-1. For example, the following call to mi_fp_returnisnull() determines whether the first return value of the my_func() user-defined function, with which fparam1 is associated is NULL:

Important: C user-defined functions always have only one return value.

Return Values

MI_TRUE indicates that the return value at position ret_pos is NULL.
MI_FALSE indicates that the return value at position ret_pos is not NULL.
MI_ERROR indicates that the function was not successful.

Related Topics

See the descriptions of the following functions: mi_fp_argisnull(), mi_fp_retlen(), mi_fp_retprec(), mi_fp_retscale(), mi_fp_rettype(), mi_fp_setargisnull(), and mi_fp_setreturnisnull().


Informix DataBlade API Programmer's Manual, Version 9.2
Copyright © 1999, Informix Software, Inc. All rights reserved