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

Removed test that was replaced by two ones: core_3690_dialect_1_test.py and core_3690_dialect_3_test.py

This commit is contained in:
pavel-zotov 2023-03-10 19:10:32 +03:00
parent 78721b418b
commit 3e36cef652

View File

@ -1,44 +0,0 @@
#coding:utf-8
"""
ID: issue-4038
ISSUE: 4038
TITLE: Wrong warning message for ambiguous query
DESCRIPTION: SQL dialect 1 allows such queries for backward compatibility reasons
JIRA: CORE-3690
FBTEST: bugs.core_3690
"""
import pytest
from firebird.qa import *
db = db_factory()
test_script = """
set list on;
select m.mon$sql_dialect from mon$database m;
select 0*rdb$relation_id as id from rdb$database,rdb$database;
"""
act = isql_act('db', test_script)
expected_stdout = """
MON$SQL_DIALECT 3
"""
expected_stderr = """
Statement failed, SQLSTATE = 42702
Dynamic SQL Error
-SQL error code = -204
-Ambiguous field name between table RDB$DATABASE and table RDB$DATABASE
-RDB$RELATION_ID
"""
@pytest.mark.version('>=3')
def test_1(act: Action):
act.expected_stdout = expected_stdout
act.expected_stderr = expected_stderr
act.execute()
assert (act.clean_stderr == act.clean_expected_stderr and
act.clean_stdout == act.clean_expected_stdout)