- function_name
- Pointer to a C string whose value is the function name in the CREATE FUNCTION definition.
- aggregation_phase
- Current aggregation phrase, which determines how the aggregate function processes the input data.
- function_context
- Pointer to the function context structure, the intermediate aggregate storage area for groups on which the aggregate function operates.
- input_parameter_specification
- [Optional] Type and name of an input parameter in the CREATE FUNCTION definition. Each input parameter in the definition must have a corresponding input_parameter_specification. The maximum number of input parameters is 128.
- result
- Pointer to a data area big enough to hold the result that the function returns, as defined by the RETURNS clause in the corresponding CREATE FUNCTION statement.
- indicator_parameter_specification
- [Optional] Indicator parameter corresponding to an input parameter. Each input_parameter_specification must have a corresponding indicator_parameter_specification. The input parameters and indicator parameters must be in the same order.
- indicator_result
- Result indicator parameter corresponding to the result.
- sqlstate
- Pointer to a six-character C string that indicates the SQLSTATE value—success, exception, or warning. The first five characters are ASCII and the sixth is the C null character. The string is initialized to '00000', which indicates success.
- m
- Number of characters in the function name in the CREATE FUNCTION definition. The ANSI SQL standard defines the maximum value for m as 128. Vantage allows a maximum of 30 characters for a function name.
- specific_function_name
- Pointer to a C string whose value is the name of the external function being invoked.
- l
- Number of characters in the name of the external function. The ANSI SQL standard defines the maximum value for m as 128. Vantage allows a maximum of 30 characters for a function name.
- error_message
- Pointer to a C string whose value is the the error message text.
- p
- Number of characters in the error message text. The maximum value is 256.