Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
2.2.0, 3.0.0
-
None
-
None
Description
when I execute example 3 at http://www.hplsql.org/resignal:
BEGIN
DECLARE EXIT HANDLER FOR SQLEXCEPTION
BEGIN
GET DIAGNOSTICS EXCEPTION 1 text = MESSAGE_TEXT;
PRINT 'SQLSTATE: ' || SQLSTATE;
PRINT 'Text: ' || text;
END;
BEGIN
DECLARE EXIT HANDLER FOR SQLEXCEPTION
RESIGNAL SQLSTATE '02031' SET MESSAGE_TEXT = 'Some error';
SELECT * FROM abc.abc; – Table does not exist, raise an exception
END;
END;
Actual results:
SQLSTATE: 42S02
Text: Error while compiling statement: FAILED: SemanticException [Error 10001]: Line 1:14 Table not found 'abc'
The official result is:
SQLSTATE: 02031
Text: Some error