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

mi_func_isvariant()

The mi_func_isvariant() function determines whether the user-defined function associated with a function descriptor is variant.

Syntax

Usage

The mi_func_isvariant() function determines whether the user-defined function associated with the funcdesc_ptr function descriptor is variant. A user-defined function is variant if it either:

You can register a UDR as variant with the VARIANT routine modifier. If you do not specify the VARIANT or NOT VARIANT routine modifier with the CREATE FUNCTION or CREATE PROCEDURE statement, the user-defined routine is variant.

Return Values

1 indicates that the UDR that the funcdesc_ptr function descriptor identifies is variant.
2 indicates that the UDR that the funcdesc_ptr function descriptor identifies is not variant.
MI_ERROR indicates that the function was not successful.

Related Topics

See the descriptions of the following functions: mi_cast_get(), mi_func_handlesnulls(), mi_func_negator(), mi_routine_get(), mi_routine_get_by_typeid(), and mi_td_cast_get().

For more information, see Checking for a Variant Function.


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