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_2051_test.py: Removed execution plan from expected output. Requested by dimitr.

This commit is contained in:
pavel-zotov 2024-09-12 11:57:26 +03:00
parent 1a3a9e0db7
commit 9afb73b053

View File

@ -7,6 +7,10 @@ TITLE: Don't work subquery in COALESCE
DESCRIPTION:
JIRA: CORE-2051
FBTEST: bugs.core_2051
NOTES:
[12.09.2024] pzotov
Removed execution plan from expected output.
Requested by dimitr, letters with subj 'core_2051_test', since 11.09.2024 17:16.
"""
import pytest
@ -28,16 +32,13 @@ test_script = """
insert into test2 values(2);
commit;
set plan on;
set list on;
select coalesce((select t2.id from test2 t2 where t2.id = t1.id), 0) id2 from test1 t1 order by t1.id;
"""
act = isql_act('db', test_script)
act = isql_act('db', test_script, substitutions = [ ('[ \t]+',' ') ])
expected_stdout = """
PLAN (T2 INDEX (TEST2_PK))
PLAN (T1 ORDER TEST1_PK)
ID2 1
ID2 2
ID2 0
@ -46,6 +47,6 @@ expected_stdout = """
@pytest.mark.version('>=3')
def test_1(act: Action):
act.expected_stdout = expected_stdout
act.execute()
act.execute(combine_output = True)
assert act.clean_stdout == act.clean_expected_stdout