File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change 13
13
FB 5.0.0.455 and later: data sources with equal cardinality now present in the HASH plan in order they are specified in the query.
14
14
Reversed order was used before this build. Because of this, two cases of expected stdout must be taken in account, see variables
15
15
'fb3x_checked_stdout' and 'fb5x_checked_stdout'.
16
+
17
+ [27.06.2025] pzotov
18
+ Separated expected output for FB major versions prior/since 6.x.
19
+ No substitutions are used to suppress schema and quotes. Discussed with dimitr, 24.06.2025 12:39.
20
+
21
+ Checked on 6.0.0.876; 5.0.3.1668; 4.0.6.3214; 3.0.13.33813.
16
22
"""
17
23
18
24
import pytest
29
35
30
36
act = isql_act ('db' , test_script )
31
37
32
- fb3x_checked_stdout = """
38
+ expected_stdout_4x = """
33
39
PLAN HASH (D2 NATURAL, D1 NATURAL)
34
40
"""
35
41
36
- fb5x_checked_stdout = """
42
+ expected_stdout_5x = """
37
43
PLAN HASH (D1 NATURAL, D2 NATURAL)
38
44
"""
39
45
46
+ expected_stdout_6x = """
47
+ PLAN HASH ("D1" NATURAL, "D2" NATURAL)
48
+ """
49
+
40
50
@pytest .mark .version ('>=3.0' )
41
51
def test_1 (act : Action ):
42
- act .expected_stdout = fb3x_checked_stdout if act .is_version ('<5' ) else fb5x_checked_stdout
52
+ act .expected_stdout = expected_stdout_4x if act .is_version ('<5' ) else expected_stdout_5x if act . is_version ( '<6' ) else expected_stdout_6x
43
53
act .execute ()
44
54
assert act .clean_stdout == act .clean_expected_stdout
45
55
You can’t perform that action at this time.
0 commit comments