mirror of
https://github.com/FirebirdSQL/firebird-qa.git
synced 2025-01-22 13:33:07 +01:00
Added/Updated tests\bugs\core_3064_test.py: Expected output was splitted because FB 5.x now *allows* execution w/o error.
This commit is contained in:
parent
7ea48326b3
commit
8418aa1c97
@ -7,6 +7,9 @@ TITLE: Using both the procedure name and alias inside an explicit plan cra
|
|||||||
DESCRIPTION:
|
DESCRIPTION:
|
||||||
JIRA: CORE-3064
|
JIRA: CORE-3064
|
||||||
FBTEST: bugs.core_3064
|
FBTEST: bugs.core_3064
|
||||||
|
NOTES:
|
||||||
|
[04.03.2023] pzotov
|
||||||
|
Expected output was splitted because FB 5.x now *allows* execution w/o error.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
@ -44,20 +47,25 @@ test_script = """
|
|||||||
|
|
||||||
act = isql_act('db', test_script, substitutions=[('offset .*', 'offset')])
|
act = isql_act('db', test_script, substitutions=[('offset .*', 'offset')])
|
||||||
|
|
||||||
expected_stderr = """
|
fb3x_expected_out = """
|
||||||
Statement failed, SQLSTATE = 42S02
|
Statement failed, SQLSTATE = 42S02
|
||||||
Dynamic SQL Error
|
Dynamic SQL Error
|
||||||
-SQL error code = -104
|
-SQL error code = -104
|
||||||
-Invalid command
|
-Invalid command
|
||||||
-there is no alias or table named GET_DATES at this scope level
|
-there is no alias or table named GET_DATES at this scope level
|
||||||
Statement failed, SQLSTATE = HY000
|
|
||||||
invalid request BLR at offset 50
|
Statement failed, SQLSTATE = HY000
|
||||||
-BLR syntax error: expected TABLE at offset 51, encountered 132
|
invalid request BLR at offset 50
|
||||||
|
-BLR syntax error: expected TABLE at offset 51, encountered 132
|
||||||
|
"""
|
||||||
|
|
||||||
|
fb5x_expected_out = """
|
||||||
|
PLAN (GET_DATES NATURAL)
|
||||||
|
PLAN (P NATURAL)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@pytest.mark.version('>=3')
|
@pytest.mark.version('>=3')
|
||||||
def test_1(act: Action):
|
def test_1(act: Action):
|
||||||
act.expected_stderr = expected_stderr
|
act.expected_stdout = fb3x_expected_out if act.is_version('<5') else fb5x_expected_out
|
||||||
act.execute()
|
act.execute(combine_output = True)
|
||||||
assert act.clean_stderr == act.clean_expected_stderr
|
assert act.clean_stdout == act.clean_expected_stdout
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user