UPDATE_ERROR_VARS_UDF (STRING, STRING, STRING, STRING, STRING, STRING)
Definition
This user-defined function (UDF) updates the error variables in an environment in order to know when the procedure throws an error.
UPDATE_ERROR_VARS_UDF(LINE STRING,CODE STRING, STATE STRING, MESSAGE STRING, PROC_NAME STRING, SEVERITY STRING)
Parameters
LINE
STRING
The line related to the error.
CODE
STRING
The error code associated with the error message.
STATE
STRING
The state of the error message.
MESSAGE
STRING
The message to be shown in the error.
PROC_NAME
STRING
The procedure name.
SEVERITY
STRING
The severity of the error.
Returns
Returns a string
value with the new error message information.
Usage example
Input:
SELECT UPDATE_ERROR_VARS_UDF('1', '1', '1', 'ABC', 'TEST', '1');
Output:
111ABCTEST1
Last updated