implementing a negator function with a C user-defined function
A negator function is a special UDR that is associated with a Boolean user-defined function. It evaluates the Boolean NOT condition for its associated user-defined function.
For example, if an expression in a WHERE clause invokes a Boolean user-defined function (UDR-Boolfunc), the SQL optimizer can decide whether it is more efficient to replace occurrences of the expression
NOT (UDR-Boolfunc)
with a call to the negator function (UDR-func-negator).
To implement a negator function with a C user-defined function:
For more information about Boolean user-defined functions and negator functions, see the IBM® Informix® User-Defined Routines and Data Types Developer's Guide. For information about how to determine if a user-defined function has a negator function, see Determine if a function is a negator function.