6
0
mirror of https://github.com/FirebirdSQL/firebird-qa.git synced 2025-01-22 13:33:07 +01:00
firebird-qa/tests/bugs/core_1690_test.py

36 lines
730 B
Python

#coding:utf-8
"""
ID: issue-2116
ISSUE: 2116
TITLE: Arithmetic exception, numeric overflow, or string truncation in utf8 tables
DESCRIPTION:
JIRA: CORE-1690
FBTEST: bugs.core_1690
"""
import pytest
from firebird.qa import *
init_script = """create table A (C1 INTEGER PRIMARY KEY);
"""
db = db_factory(charset='UTF8', init=init_script)
test_script = """show table A;
"""
act = isql_act('db', test_script)
expected_stdout = """C1 INTEGER Not Null
CONSTRAINT INTEG_2:
Primary key (C1)
"""
@pytest.mark.version('>=3')
def test_1(act: Action):
act.expected_stdout = expected_stdout
act.execute()
assert act.clean_stdout == act.clean_expected_stdout