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_3799_test.py: Writing code requires more care since 6.0.0.150: ISQL does not allow to specify THE SAME terminator twice

This commit is contained in:
pavel-zotov 2023-11-25 18:51:55 +03:00
parent 4693684b5b
commit e1b2970c1f

View File

@ -7,6 +7,10 @@ TITLE: with caller privileges option do not work with autonomous transacti
DESCRIPTION:
JIRA: CORE-3799
FBTEST: bugs.core_3799
[25.11.2023] pzotov
Writing code requires more care since 6.0.0.150: ISQL does not allow to specify THE SAME terminator twice,
i.e.
set term @; select 1 from rdb$database @ set term @; - will not compile ("Unexpected end of command" raises).
"""
import pytest
@ -65,16 +69,9 @@ test_script = """
execute statement 'execute procedure sp_test' as user v_usr password v_pwd;
end
^
set term ^;
set term ;^
commit;
-------------------------------------------------------------------------------------------------
--connect '$(DSN)' user 'tmp$c3799' password '123';
--execute procedure sp_test;
--commit;
-------------------------------------------------------------------------------------------------
set list on;
select whoami as "Who am I ?", sign( my_trn - outer_trn ) "Did I work in AUTONOMOUS Tx ?"
from test;