Type compare functions

Type compare support consists of an internal support function, Compare(), and two operator functions, Equal() and NotEqual(), that users can use in SQL statements to evaluate two opaque data types.

The generated Compare() function compares two opaque data types member-by-member until it finds two members that are not equal. The Equal() and NotEqual() functions call the Compare() function. The Equal() function tests whether the Compare() function returns 0 when two opaque data types are compared. The NotEqual() function tests whether the Compare() function returns a nonzero value when two opaque data types are compared.

BladeSmith generates complete code for these functions; however, you can modify the way the Compare() function evaluates its opaque data type arguments.

See the Informix® DataBlade® Developers Kit User's Guide for more information.