mirror of
https://github.com/FirebirdSQL/firebird-qa.git
synced 2025-01-22 13:33:07 +01:00
37 lines
758 B
Python
37 lines
758 B
Python
#coding:utf-8
|
|
|
|
"""
|
|
ID: issue-4817
|
|
ISSUE: 4817
|
|
TITLE: FB 3.0 crashes when getting an explained plan for a DBKEY based retrieval
|
|
DESCRIPTION:
|
|
JIRA: CORE-4498
|
|
FBTEST: bugs.core_4498
|
|
"""
|
|
|
|
import pytest
|
|
from firebird.qa import *
|
|
|
|
db = db_factory()
|
|
|
|
test_script = """
|
|
set explain;
|
|
select 1 from rdb$relations where rdb$db_key = cast('1234' as char(8) character set octets);
|
|
"""
|
|
|
|
act = isql_act('db', test_script)
|
|
|
|
expected_stdout = """
|
|
Select Expression
|
|
-> Filter
|
|
-> Table "RDB$RELATIONS" Access By ID
|
|
-> DBKEY
|
|
"""
|
|
|
|
@pytest.mark.version('>=3.0')
|
|
def test_1(act: Action):
|
|
act.expected_stdout = expected_stdout
|
|
act.execute()
|
|
assert act.clean_stdout == act.clean_expected_stdout
|
|
|