6
0
mirror of https://github.com/FirebirdSQL/firebird-qa.git synced 2025-01-22 13:33:07 +01:00

Added/Updated tests\bugs\core_5843_test.py: Writing code requires more care since 6.0.0.150: ISQL does not allow specifying duplicate delimiters without any statements between them (two semicolon, two carets etc).

This commit is contained in:
pavel-zotov 2023-11-25 19:36:17 +03:00
parent 475b37b22c
commit 0c97ab5e3e

View File

@ -7,6 +7,9 @@ TITLE: Wrong handling of failures of TRANSACTION START trigger
DESCRIPTION: DESCRIPTION:
JIRA: CORE-5843 JIRA: CORE-5843
FBTEST: bugs.core_5843 FBTEST: bugs.core_5843
NOTES:
[25.11.2023] pzotov
Writing code requires more care since 6.0.0.150: ISQL does not allow specifying duplicate delimiters without any statements between them (two semicolon, two carets etc).
""" """
import pytest import pytest
@ -112,7 +115,7 @@ test_script = """
c = rdb$set_context('USER_SESSION', 'tx_abort', 1); -- flag to raise error on next tx start c = rdb$set_context('USER_SESSION', 'tx_abort', 1); -- flag to raise error on next tx start
end end
^ ^
set term ^; set term ;^
commit; commit;
select 'test_1, point-2' as msg, v.* from rdb$database cross join v_mon v; -- it start transaction select 'test_1, point-2' as msg, v.* from rdb$database cross join v_mon v; -- it start transaction
@ -134,7 +137,7 @@ test_script = """
c = rdb$set_context('USER_SESSION', 'tx_trig_log', ascii_char(10) || 'start: tx=' || current_transaction ); -- start logging c = rdb$set_context('USER_SESSION', 'tx_trig_log', ascii_char(10) || 'start: tx=' || current_transaction ); -- start logging
end end
^ ^
set term ^; set term ;^
commit; commit;
select 'test2, point-a' as msg, v.* from rdb$database cross join v_mon v; select 'test2, point-a' as msg, v.* from rdb$database cross join v_mon v;