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_0086_test.py

41 lines
1.1 KiB
Python
Raw Permalink Normal View History

2021-04-26 20:07:00 +02:00
#coding:utf-8
2022-01-18 11:45:40 +01:00
"""
2022-01-18 20:45:21 +01:00
ID: issue-412
2022-01-18 11:45:40 +01:00
ISSUE: 412
TITLE: Index bug
DESCRIPTION: Can not fetch the data when Index is in use
2022-01-18 20:45:21 +01:00
JIRA: CORE-86
FBTEST: bugs.core_0086
2022-01-18 11:45:40 +01:00
"""
2021-04-26 20:07:00 +02:00
2022-01-18 11:45:40 +01:00
import pytest
from firebird.qa import *
2021-04-26 20:07:00 +02:00
2022-01-18 11:45:40 +01:00
db = db_factory(from_backup='core86.fbk')
2021-04-26 20:07:00 +02:00
2022-01-18 11:45:40 +01:00
test_script = """Select * from YLK A where PH = '0021'
2021-04-26 20:07:00 +02:00
and HPBH = '492'
and CD = 'MG'
and JLDW = 'JIAN'
and JZDW = 'DUN'
and CK = '8K'
and HW = '1.8'
2022-01-18 11:45:40 +01:00
and SH='1.81';
"""
2021-04-26 20:07:00 +02:00
2022-01-18 11:45:40 +01:00
act = isql_act('db', test_script)
2021-04-26 20:07:00 +02:00
2022-01-18 11:45:40 +01:00
expected_stdout = """ID_YLK PH HPBH CD JLDW JZDW CK HW SH
2021-04-26 20:07:00 +02:00
============ ==================== ============ ==================== ====== ====== ================ ============ =====================
110 0021 492 MG JIAN DUN 8K 1.8 1.81000
"""
2022-01-18 11:45:40 +01:00
@pytest.mark.version('>=3')
def test_1(act: Action):
act.expected_stdout = expected_stdout
act.execute()
assert act.clean_stdout == act.clean_expected_stdout
2021-04-26 20:07:00 +02:00