Routine modifier
A routine modifier specifies characteristics of how a user-defined routine (UDR) behaves.
Syntax
Element | Description | Restrictions | Syntax |
---|---|---|---|
parameter | Name that you declare here for a returned parameter of the UDR | Must be unique among returned parameters of UDRs. If any returned value of the UDR has a name, then all must have names. | Identifier |
Usage
If you drop an existing modifier in an ALTER FUNCTION, ALTER PROCEDURE, or ALTER ROUTINE statement, the database server sets the value of the modifier to the default value, if a default exists.
Some modifiers are available only with user-defined functions. For information about whether a specific routine modifier applies only to user-defined functions (that is, if it does not apply to user-defined procedures), see the description of the modifier in the sections that follow. In these sections, as elsewhere in this document, external refers to UDRs written in the C or Java™ languages. Features valid for only one language are so designated in the previous diagrams.
Except for VARIANT and NOT VARIANT modifiers, none of the options in this segment are valid for SPL routines.
Example
CREATE FUNCTION delete_order(int) RETURNING int
WITH (NOT VARIANT)
EXTERNAL NAME 'informix.demo_jar:delete_order.delete_order()'
LANGUAGE JAVA;