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

54 lines
1.2 KiB
Python
Raw Normal View History

2021-04-26 20:07:00 +02:00
#coding:utf-8
#
# id: bugs.core_2227
# title: Problem with column names with Accents and triggers
2021-12-19 22:25:36 +01:00
# decription:
2021-04-26 20:07:00 +02:00
# 28.02.2021
# Changed connection charset to UTF8 otherwise on Linux this test leads to 'ERROR' with issuing:
# ====
# ISQL_STDERR
# Expected end of statement, encountered EOF
# ====
# Checked again on:
# 1) Windows: 4.0.0.2372; 3.0.8.33416
# 2) Linux: 4.0.0.2377
2021-12-19 22:25:36 +01:00
#
2021-04-26 20:07:00 +02:00
# tracker_id: CORE-2227
# min_versions: []
# versions: 2.1.2
# qmid: None
import pytest
from firebird.qa import db_factory, isql_act, Action
# version: 2.1.2
# resources: None
substitutions_1 = []
init_script_1 = """
RECREATE TABLE TESTING (
"CÓDIGO" INTEGER
);
2021-12-22 20:23:11 +01:00
"""
2021-04-26 20:07:00 +02:00
db_1 = db_factory(charset='ISO8859_1', sql_dialect=3, init=init_script_1)
test_script_1 = """
SET TERM ^;
CREATE TRIGGER TESTING_I FOR TESTING
ACTIVE BEFORE INSERT POSITION 0
AS
BEGIN
NEW."CÓDIGO" = 1;
END ^
2021-12-22 20:23:11 +01:00
"""
2021-04-26 20:07:00 +02:00
act_1 = isql_act('db_1', test_script_1, substitutions=substitutions_1)
@pytest.mark.version('>=2.1.2')
2021-04-28 12:42:11 +02:00
def test_1(act_1: Action):
2021-12-19 22:25:36 +01:00
act_1.execute(charset='utf8')
2021-04-26 20:07:00 +02:00