mirror of
https://github.com/FirebirdSQL/firebird-qa.git
synced 2025-02-02 02:40:42 +01:00
Added/Updated tests\bugs\gh_7853_test.py: Remove upper bound for version after this feature was front-ported to 6.x in commit 0d72b8097c292dabb5c9a257a157f20d9362ab26 (16.11.23).
This commit is contained in:
parent
c0e48cc498
commit
943525b4a7
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
ID: issue-7853
|
ID: issue-7853
|
||||||
ISSUE: 7853
|
ISSUE: https://github.com/FirebirdSQL/firebird/pull/7853
|
||||||
TITLE: Do not consider non-deterministic expressions as invariants in pre-filters
|
TITLE: Do not consider non-deterministic expressions as invariants in pre-filters
|
||||||
DESCRIPTION:
|
DESCRIPTION:
|
||||||
Change in FB 5.x was pushed 14.12.2023 20:06:
|
Change in FB 5.x was pushed 14.12.2023 20:06:
|
||||||
@ -29,6 +29,10 @@ NOTES:
|
|||||||
|
|
||||||
Checked on 5.0.0.1304
|
Checked on 5.0.0.1304
|
||||||
::: NB ::: Build 6.0.0.180 - FAILS because this PR still not pushed in master branch. Waiting for commit.
|
::: NB ::: Build 6.0.0.180 - FAILS because this PR still not pushed in master branch. Waiting for commit.
|
||||||
|
|
||||||
|
[18.11.2024] pzotov
|
||||||
|
Remove upper bound for version after this feature was front-ported to 6.x in commit 0d72b8097c292dabb5c9a257a157f20d9362ab26 (16.11.23).
|
||||||
|
Checked on 6.0.0.532.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
@ -63,40 +67,40 @@ act = python_act('db')
|
|||||||
|
|
||||||
expected_stdout = """
|
expected_stdout = """
|
||||||
Select Expression
|
Select Expression
|
||||||
####-> Aggregate
|
....-> Aggregate
|
||||||
########-> Filter
|
........-> Filter
|
||||||
############-> Table "TMAIN" as "M0" Full Scan
|
............-> Table "TMAIN" as "M0" Full Scan
|
||||||
|
|
||||||
Select Expression
|
Select Expression
|
||||||
####-> Aggregate
|
....-> Aggregate
|
||||||
########-> Filter
|
........-> Filter
|
||||||
############-> Table "TMAIN" as "M1" Full Scan
|
............-> Table "TMAIN" as "M1" Full Scan
|
||||||
|
|
||||||
Select Expression
|
Select Expression
|
||||||
####-> Aggregate
|
....-> Aggregate
|
||||||
########-> Filter
|
........-> Filter
|
||||||
############-> Table "TMAIN" as "M2" Full Scan
|
............-> Table "TMAIN" as "M2" Full Scan
|
||||||
|
|
||||||
Select Expression
|
Select Expression
|
||||||
####-> Aggregate
|
....-> Aggregate
|
||||||
########-> Filter
|
........-> Filter
|
||||||
############-> Table "TMAIN" as "M3" Full Scan
|
............-> Table "TMAIN" as "M3" Full Scan
|
||||||
|
|
||||||
Sub-query (invariant)
|
Sub-query (invariant)
|
||||||
####-> Singularity Check
|
....-> Singularity Check
|
||||||
########-> Aggregate
|
........-> Aggregate
|
||||||
############-> Table "TDETL" as "D" Full Scan
|
............-> Table "TDETL" as "D" Full Scan
|
||||||
Select Expression
|
Select Expression
|
||||||
####-> Aggregate
|
....-> Aggregate
|
||||||
########-> Filter
|
........-> Filter
|
||||||
############-> Table "TMAIN" as "M4" Full Scan
|
............-> Table "TMAIN" as "M4" Full Scan
|
||||||
"""
|
"""
|
||||||
#---------------------------------------------------------
|
#---------------------------------------------------------
|
||||||
def replace_leading(source, char="#"):
|
def replace_leading(source, char="."):
|
||||||
stripped = source.lstrip()
|
stripped = source.lstrip()
|
||||||
return char * (len(source) - len(stripped)) + stripped
|
return char * (len(source) - len(stripped)) + stripped
|
||||||
#---------------------------------------------------------
|
#---------------------------------------------------------
|
||||||
@pytest.mark.version('>=5.0,<6')
|
@pytest.mark.version('>=5.0')
|
||||||
def test_1(act: Action, capsys):
|
def test_1(act: Action, capsys):
|
||||||
with act.db.connect() as con:
|
with act.db.connect() as con:
|
||||||
cur = con.cursor()
|
cur = con.cursor()
|
||||||
|
Loading…
Reference in New Issue
Block a user