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

51 lines
1.2 KiB
Python
Raw Normal View History

2021-04-26 20:07:00 +02:00
#coding:utf-8
#
# id: bugs.core_5313
# title: Data type unknown error with LIST
2021-10-21 19:29:23 +02:00
# decription:
2021-04-26 20:07:00 +02:00
# tracker_id: CORE-5313
# min_versions: ['3.0.1']
# versions: 3.0.1, 4.0
# qmid: None
import pytest
from firebird.qa import db_factory, isql_act, Action
2021-10-21 19:29:23 +02:00
# version: 3.0.7
2021-04-26 20:07:00 +02:00
# resources: None
substitutions_1 = []
init_script_1 = """"""
db_1 = db_factory(sql_dialect=3, init=init_script_1)
test_script_1 = """
2021-10-21 19:29:23 +02:00
set planonly;
set sqlda_display on;
2021-04-26 20:07:00 +02:00
select list(trim(rdb$relation_name), ?) from rdb$relations;
"""
act_1 = isql_act('db_1', test_script_1, substitutions=substitutions_1)
expected_stdout_1 = """
INPUT message field count: 1
2021-10-21 19:29:23 +02:00
01: sqltype: 452 TEXT scale: 0 subtype: 0 len: 4 charset: 4 UTF8
2021-04-26 20:07:00 +02:00
: name: alias:
: table: owner:
PLAN (RDB$RELATIONS NATURAL)
OUTPUT message field count: 1
2021-10-21 19:29:23 +02:00
01: sqltype: 520 BLOB Nullable scale: 0 subtype: 1 len: 8 charset: 4 UTF8
2021-04-26 20:07:00 +02:00
: name: LIST alias: LIST
: table: owner:
"""
2021-10-21 19:29:23 +02:00
@pytest.mark.version('>=3.0.7')
2021-04-28 12:42:11 +02:00
def test_1(act_1: Action):
2021-04-26 20:07:00 +02:00
act_1.expected_stdout = expected_stdout_1
act_1.execute()
assert act_1.clean_expected_stdout == act_1.clean_stdout