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

Added/Updated tests\bugs\gh_8087_test.py: Checked on 6.0.0.321 #1d96c10 - all OK.

This commit is contained in:
pavel-zotov 2024-04-18 09:43:44 +03:00
parent dc41662283
commit 043bef6a2c

View File

@ -0,0 +1,38 @@
#coding:utf-8
"""
ID: issue-8087
ISSUE: https://github.com/FirebirdSQL/firebird/issues/8087
TITLE: AV when preparing a query with IN list that contains both literals and sub-query
DESCRIPTION:
NOTES:
[18.04.2024] pzotov
Confirmed bug (AV) on 6.0.0.315
Checked on 6.0.0.321 #1d96c10 - all OK.
"""
import pytest
from firebird.qa import *
db = db_factory()
test_script = """
set count on;
select 1
from rdb$relations r
where r.rdb$relation_id in (1, (select d.rdb$relation_id from rdb$database d))
rows 0
;
"""
act = isql_act('db', test_script, substitutions=[('[ \t]+', ' ')])
expected_stdout = """
Records affected: 0
"""
@pytest.mark.version('>=6.0.0')
def test_1(act: Action):
act.expected_stdout = expected_stdout
act.execute(combine_output = True)
assert act.clean_stdout == act.clean_expected_stdout