2021-04-26 20:07:00 +02:00
|
|
|
#coding:utf-8
|
|
|
|
|
2022-01-22 21:59:15 +01:00
|
|
|
"""
|
|
|
|
ID: issue-3428
|
|
|
|
ISSUE: 3428
|
|
|
|
TITLE: Wrong logic is used to resolve EXECUTE BLOCK parameters collations
|
|
|
|
DESCRIPTION:
|
|
|
|
JIRA: CORE-3047
|
2022-02-02 15:46:19 +01:00
|
|
|
FBTEST: bugs.core_3047
|
2022-01-22 21:59:15 +01:00
|
|
|
"""
|
2021-04-26 20:07:00 +02:00
|
|
|
|
2022-01-22 21:59:15 +01:00
|
|
|
import pytest
|
|
|
|
from firebird.qa import *
|
2021-04-26 20:07:00 +02:00
|
|
|
|
2022-01-22 21:59:15 +01:00
|
|
|
db = db_factory(charset='UTF8')
|
2021-04-26 20:07:00 +02:00
|
|
|
|
2022-01-22 21:59:15 +01:00
|
|
|
test_script = """
|
2021-04-26 20:07:00 +02:00
|
|
|
set term ^;
|
2022-01-22 21:59:15 +01:00
|
|
|
-- win_ptbr should be resolved against connection charset (win1252), not database (utf8)
|
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 ;^
|
2021-12-22 20:23:11 +01:00
|
|
|
"""
|
2021-04-26 20:07:00 +02:00
|
|
|
|
2022-01-22 21:59:15 +01:00
|
|
|
act = isql_act('db', test_script)
|
2021-04-26 20:07:00 +02:00
|
|
|
|
|
|
|
@pytest.mark.version('>=3.0')
|
2022-01-22 21:59:15 +01:00
|
|
|
def test_1(act: Action):
|
2022-01-25 22:55:48 +01:00
|
|
|
act.execute(charset='win1252')
|