6
0
mirror of https://github.com/FirebirdSQL/firebird-qa.git synced 2025-01-22 21:43:06 +01:00

Revert "Merge branch 'master' of github.com:ant-zuev/firebird-qa-ant"

This reverts commit 99a3aebc58, reversing
changes made to 7f14175f7a.
This commit is contained in:
Anton Zuev 2023-03-10 10:46:19 +03:00
parent 034b469851
commit a463953ed9
5 changed files with 27 additions and 46 deletions

View File

@ -4,7 +4,11 @@
ID: derived-table-23
TITLE: Derived table with outer reference from JOIN.
DESCRIPTION: Outer reference inside derived table to other relations in from clause is not allowed.
FBTEST: functional.arno.derived_tables.25
NOTES:
[09.03.2023] pzotov
This test was missing as a result of migration for unknown reason.
Thanks to Anton Zuev for note.
Checked on 3.0.11.33665, 4.0.3.2904, 5.0.0.970
"""
import pytest
@ -14,9 +18,7 @@ init_script = """CREATE TABLE Table_10 (
ID INTEGER NOT NULL,
DESCRIPTION VARCHAR(10)
);
COMMIT;
INSERT INTO Table_10 (ID, DESCRIPTION) VALUES (0, NULL);
INSERT INTO Table_10 (ID, DESCRIPTION) VALUES (1, 'one');
INSERT INTO Table_10 (ID, DESCRIPTION) VALUES (2, 'two');
@ -27,7 +29,6 @@ INSERT INTO Table_10 (ID, DESCRIPTION) VALUES (6, 'six');
INSERT INTO Table_10 (ID, DESCRIPTION) VALUES (7, 'seven');
INSERT INTO Table_10 (ID, DESCRIPTION) VALUES (8, 'eight');
INSERT INTO Table_10 (ID, DESCRIPTION) VALUES (9, 'nine');
COMMIT;"""
db = db_factory(init=init_script)

View File

@ -4,7 +4,11 @@
ID: derived-table-24
TITLE: Derived table with outer reference from LEFT JOIN.
DESCRIPTION: Outer reference inside derived table to other relations in from clause is not allowed.
FBTEST: functional.arno.derived_tables.26
NOTES:
[09.03.2023] pzotov
This test was missing as a result of migration for unknown reason.
Thanks to Anton Zuev for note.
Checked on 3.0.11.33665, 4.0.3.2904, 5.0.0.970
"""
import pytest
@ -14,9 +18,7 @@ init_script = """CREATE TABLE Table_10 (
ID INTEGER NOT NULL,
DESCRIPTION VARCHAR(10)
);
COMMIT;
INSERT INTO Table_10 (ID, DESCRIPTION) VALUES (0, NULL);
INSERT INTO Table_10 (ID, DESCRIPTION) VALUES (1, 'one');
INSERT INTO Table_10 (ID, DESCRIPTION) VALUES (2, 'two');
@ -27,7 +29,6 @@ INSERT INTO Table_10 (ID, DESCRIPTION) VALUES (6, 'six');
INSERT INTO Table_10 (ID, DESCRIPTION) VALUES (7, 'seven');
INSERT INTO Table_10 (ID, DESCRIPTION) VALUES (8, 'eight');
INSERT INTO Table_10 (ID, DESCRIPTION) VALUES (9, 'nine');
COMMIT;"""
db = db_factory(init=init_script)
@ -49,12 +50,6 @@ Dynamic SQL Error
-At line 5, column 58
"""
@pytest.mark.version('>=3')
def test_1(act: Action):
act.expected_stderr = expected_stderr
act.execute()
assert act.clean_stderr == act.clean_expected_stderr
@pytest.mark.version('>=3')
def test_1(act: Action):
act.expected_stderr = expected_stderr

View File

@ -4,7 +4,11 @@
ID: derived-table-25
TITLE: Derived table with outer reference from FULL JOIN.
DESCRIPTION: Outer reference inside derived table to other relations in from clause is not allowed.
FBTEST: functional.arno.derived_tables.27
NOTES:
[09.03.2023] pzotov
This test was missing as a result of migration for unknown reason.
Thanks to Anton Zuev for note.
Checked on 3.0.11.33665, 4.0.3.2904, 5.0.0.970
"""
import pytest
@ -14,9 +18,7 @@ init_script = """CREATE TABLE Table_10 (
ID INTEGER NOT NULL,
DESCRIPTION VARCHAR(10)
);
COMMIT;
INSERT INTO Table_10 (ID, DESCRIPTION) VALUES (0, NULL);
INSERT INTO Table_10 (ID, DESCRIPTION) VALUES (1, 'one');
INSERT INTO Table_10 (ID, DESCRIPTION) VALUES (2, 'two');
@ -27,7 +29,6 @@ INSERT INTO Table_10 (ID, DESCRIPTION) VALUES (6, 'six');
INSERT INTO Table_10 (ID, DESCRIPTION) VALUES (7, 'seven');
INSERT INTO Table_10 (ID, DESCRIPTION) VALUES (8, 'eight');
INSERT INTO Table_10 (ID, DESCRIPTION) VALUES (9, 'nine');
COMMIT;"""
db = db_factory(init=init_script)
@ -49,12 +50,6 @@ Dynamic SQL Error
-At line 5, column 58
"""
@pytest.mark.version('>=3')
def test_1(act: Action):
act.expected_stderr = expected_stderr
act.execute()
assert act.clean_stderr == act.clean_expected_stderr
@pytest.mark.version('>=3')
def test_1(act: Action):
act.expected_stderr = expected_stderr

View File

@ -2,9 +2,13 @@
"""
ID: derived-table-26
TITLE: Derived table with non-unique column names.
TITLE: Derived table with column that is specified several times
DESCRIPTION: Expect an error if a derived table column names is not unique.
FBTEST: functional.arno.derived_tables.29
NOTES:
[09.03.2023] pzotov
This test was missing as a result of migration for unknown reason.
Thanks to Anton Zuev for note.
Checked on 3.0.11.33665, 4.0.3.2904, 5.0.0.970
"""
import pytest
@ -14,9 +18,7 @@ init_script = """CREATE TABLE Table_10 (
ID INTEGER NOT NULL,
DESCRIPTION VARCHAR(10)
);
COMMIT;
INSERT INTO Table_10 (ID, DESCRIPTION) VALUES (0, NULL);
INSERT INTO Table_10 (ID, DESCRIPTION) VALUES (1, 'one');
INSERT INTO Table_10 (ID, DESCRIPTION) VALUES (2, 'two');
@ -27,7 +29,6 @@ INSERT INTO Table_10 (ID, DESCRIPTION) VALUES (6, 'six');
INSERT INTO Table_10 (ID, DESCRIPTION) VALUES (7, 'seven');
INSERT INTO Table_10 (ID, DESCRIPTION) VALUES (8, 'eight');
INSERT INTO Table_10 (ID, DESCRIPTION) VALUES (9, 'nine');
COMMIT;"""
db = db_factory(init=init_script)
@ -47,12 +48,6 @@ Dynamic SQL Error
-column ID was specified multiple times for derived table DT
"""
@pytest.mark.version('>=3')
def test_1(act: Action):
act.expected_stderr = expected_stderr
act.execute()
assert act.clean_stderr == act.clean_expected_stderr
@pytest.mark.version('>=3')
def test_1(act: Action):
act.expected_stderr = expected_stderr

View File

@ -2,9 +2,13 @@
"""
ID: derived-table-27
TITLE: Derived table with non-unique column aliases.
TITLE: Derived table with same alias for several columns
DESCRIPTION: Expect an error if a derived table column aliases is not unique.
FBTEST: functional.arno.derived_tables.30
NOTES:
[09.03.2023] pzotov
This test was missing as a result of migration for unknown reason.
Thanks to Anton Zuev for note.
Checked on 3.0.11.33665, 4.0.3.2904, 5.0.0.970
"""
import pytest
@ -14,9 +18,7 @@ init_script = """CREATE TABLE Table_10 (
ID INTEGER NOT NULL,
DESCRIPTION VARCHAR(10)
);
COMMIT;
INSERT INTO Table_10 (ID, DESCRIPTION) VALUES (0, NULL);
INSERT INTO Table_10 (ID, DESCRIPTION) VALUES (1, 'one');
INSERT INTO Table_10 (ID, DESCRIPTION) VALUES (2, 'two');
@ -27,7 +29,6 @@ INSERT INTO Table_10 (ID, DESCRIPTION) VALUES (6, 'six');
INSERT INTO Table_10 (ID, DESCRIPTION) VALUES (7, 'seven');
INSERT INTO Table_10 (ID, DESCRIPTION) VALUES (8, 'eight');
INSERT INTO Table_10 (ID, DESCRIPTION) VALUES (9, 'nine');
COMMIT;"""
db = db_factory(init=init_script)
@ -47,12 +48,6 @@ Dynamic SQL Error
-column ID was specified multiple times for derived table DT
"""
@pytest.mark.version('>=3')
def test_1(act: Action):
act.expected_stderr = expected_stderr
act.execute()
assert act.clean_stderr == act.clean_expected_stderr
@pytest.mark.version('>=3')
def test_1(act: Action):
act.expected_stderr = expected_stderr