mirror of
https://github.com/FirebirdSQL/firebird-qa.git
synced 2025-01-22 21:43:06 +01:00
Added/Updated tests\bugs\gh_7698_test.py: Checked on 5.0.0.1155 -- all OK.
This commit is contained in:
parent
cae18186f8
commit
b6b533dae3
34
tests/bugs/gh_7698_test.py
Normal file
34
tests/bugs/gh_7698_test.py
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
#coding:utf-8
|
||||||
|
|
||||||
|
"""
|
||||||
|
ID: issue-7698
|
||||||
|
ISSUE: https://github.com/FirebirdSQL/firebird/issues/7698
|
||||||
|
TITLE: The legacy plan with window functions is broken
|
||||||
|
DESCRIPTION:
|
||||||
|
NOTES:
|
||||||
|
Confirmed bug on 5.0.0.1149
|
||||||
|
Checked on 5.0.0.1155 -- all OK.
|
||||||
|
"""
|
||||||
|
|
||||||
|
import pytest
|
||||||
|
from firebird.qa import *
|
||||||
|
|
||||||
|
db = db_factory()
|
||||||
|
|
||||||
|
test_script = f"""
|
||||||
|
set plan on;
|
||||||
|
set planonly;
|
||||||
|
select count(*) over() from rdb$relations;
|
||||||
|
"""
|
||||||
|
|
||||||
|
act = isql_act('db', test_script)
|
||||||
|
|
||||||
|
expected_stdout = """
|
||||||
|
PLAN (RDB$RELATIONS NATURAL)
|
||||||
|
"""
|
||||||
|
|
||||||
|
@pytest.mark.version('>=3.0')
|
||||||
|
def test_1(act: Action):
|
||||||
|
act.expected_stdout = expected_stdout
|
||||||
|
act.execute(combine_output = True)
|
||||||
|
assert act.clean_stdout == act.clean_expected_stdout
|
Loading…
Reference in New Issue
Block a user