Skip to content

Commit

Permalink
Adjusted expected_stderr section after CORE-5216 was fixed (line/col …
Browse files Browse the repository at this point in the history
…for exception when it occures inside EXECUTE BLOCK)
  • Loading branch information
pavel-zotov committed Apr 29, 2016
1 parent 1d77efa commit 61b4df7
Showing 1 changed file with 28 additions and 43 deletions.
71 changes: 28 additions & 43 deletions tests/bugs/core_3761.fbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,53 +4,38 @@
'tracker_id': 'CORE-3761',
'title': 'Conversion error when using a blob as an argument for the EXCEPTION statement',
'description': '',
'min_versions': '2.1.5',
'min_versions': '2.5',
'versions': [
{
'firebird_version': '2.1.5',
'firebird_version': '2.5.6',
'platform': 'All',
'page_size': '4096',
'init_script': """CREATE EXCEPTION CHECK_EXCEPTION 'Check exception';
COMMIT;
""",
'init_script':
"""
CREATE EXCEPTION CHECK_EXCEPTION 'Check exception';
COMMIT;
""",
'test_type': 'ISQL',
'test_script': """SET TERM ^^;
EXECUTE BLOCK
AS
BEGIN
EXCEPTION CHECK_EXCEPTION
CAST ('WORD' AS BLOB SUB_TYPE TEXT);
END^^
SET TERM ;^^
""",
'expected_stderr': """Statement failed, SQLCODE = -836
exception 1
-CHECK_EXCEPTION
-WORD
"""
},
{
'firebird_version': '2.5.2',
'platform': 'All',
'page_size': '4096',
'init_script': """CREATE EXCEPTION CHECK_EXCEPTION 'Check exception';
COMMIT;
""",
'test_type': 'ISQL',
'test_script': """SET TERM ^^;
EXECUTE BLOCK
AS
BEGIN
EXCEPTION CHECK_EXCEPTION
CAST ('WORD' AS BLOB SUB_TYPE TEXT);
END^^
SET TERM ;^^
""",
'expected_stderr': """Statement failed, SQLSTATE = HY000
exception 1
-CHECK_EXCEPTION
-WORD
"""
'test_script':
"""
SET TERM ^;
EXECUTE BLOCK AS
BEGIN
EXCEPTION CHECK_EXCEPTION CAST ('WORD' AS BLOB SUB_TYPE TEXT);
END^^
SET TERM ;^
""",
'expected_stderr':
"""
Statement failed, SQLSTATE = HY000
exception 1
-CHECK_EXCEPTION
-WORD
-At block line: 4, col: 2
""",
'substitutions': [
('-At block line: [\d]+, col: [\d]+', '-At block line')
]

}
]
}

0 comments on commit 61b4df7

Please sign in to comment.