6
0
mirror of https://github.com/FirebirdSQL/firebird-qa.git synced 2025-01-23 05:53:06 +01:00
firebird-qa/tests/bugs/core_3047_test.py

51 lines
1.4 KiB
Python
Raw Normal View History

2021-04-26 20:07:00 +02:00
#coding:utf-8
#
# id: bugs.core_3047
# title: Wrong logic is used to resolve EXECUTE BLOCK parameters collations
2021-10-21 19:29:23 +02:00
# decription:
2021-04-26 20:07:00 +02:00
# tracker_id: CORE-3047
# min_versions: ['3.0']
# versions: 3.0
# qmid: None
import pytest
from firebird.qa import db_factory, isql_act, Action
# version: 3.0
# resources: None
substitutions_1 = []
init_script_1 = """"""
db_1 = db_factory(page_size=4096, charset='UTF8', sql_dialect=3, init=init_script_1)
test_script_1 = """
-- In 2.5 (checked on WI-V2.5.5.26861):
-- Statement failed, SQLSTATE = HY004
-- Dynamic SQL Error
-- -SQL error code = -204
-- -Data type unknown
-- -COLLATION WIN_PTBR for CHARACTER SET UTF8 is not defined
2021-10-21 19:29:23 +02:00
-- (See ticket issue: "WIN_PTBR is tried to be resolved agains database charset instead of client charset: incorrect")
2021-04-26 20:07:00 +02:00
-- In 3.0.0.31827 (WI- and LI-) works fine:
2021-11-09 11:01:26 +01:00
-- [pcisar] 20.10.2021
-- It fails as well in 3.0.7 and 4.0 on Linux (opensuse tumbleweed) and Windows (8.1)
-- It appears that this test is bogus from the beginning
2021-04-26 20:07:00 +02:00
set term ^;
2021-10-21 19:29:23 +02:00
execute block returns (c varchar(10) collate win_ptbr) as
2021-04-26 20:07:00 +02:00
begin
end
^
set term ;^
"""
act_1 = isql_act('db_1', test_script_1, substitutions=substitutions_1)
@pytest.mark.version('>=3.0')
2021-04-28 12:42:11 +02:00
def test_1(act_1: Action):
2021-12-19 22:25:36 +01:00
pytest.xfail("Either not fixed or wrong test")
2021-04-26 20:07:00 +02:00
act_1.execute()