Raises the current, or the specified, exception condition.
The RESIGNAL statement has the effect of raising the current exception condition, if specified without an argument, or an alternative exception condition specified by either an SQLSTATE value or a condition name.
If a condition identifier is used in the statement the associated SQLSTATE value is raised. If the condition identifier is declared without a SQLSTATE value, the SQLSTATE 45000 is raised. If there is an appropriate exception handler for this SQLSTATE, this handler will be invoked otherwise the SQLSTATE is propagated to the calling environment.
Note that a SQLSTATE value corresponding to a warning condition that is not catched by an exception handler will not be propagated to the calling environment.
The RESIGNAL statement may only be used within an exception handler, see DECLARE HANDLER, to force re-propagation of an exception condition to the scope or calling environment enclosing the scope supporting the exception handler.
See DECLARE CONDITION for a description of how to declare a condition name.
ExampleRESIGNAL SQLSTATE 'UE456';
For more information, see the Mimer SQL Programmer's Manual, RESIGNAL Statements.
Mimer Information Technology AB
Voice: +46 18 780 92 00
Fax: +46 18 780 92 40