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

32 lines
696 B
Python
Raw Normal View History

2021-04-26 20:07:00 +02:00
#coding:utf-8
2022-01-27 20:08:36 +01:00
"""
ID: issue-6756
ISSUE: 6756
TITLE: Error "no current record for fetch operation" when sorting by a international string
DESCRIPTION:
JIRA: CORE-6529
FBTEST: bugs.core_6529
2022-01-27 20:08:36 +01:00
"""
2021-04-26 20:07:00 +02:00
2022-01-27 20:08:36 +01:00
import pytest
from firebird.qa import *
2021-04-26 20:07:00 +02:00
2022-01-27 20:08:36 +01:00
init_script = """
recreate table t (f varchar(32765) character set win1251) ;
"""
2021-04-26 20:07:00 +02:00
2022-01-27 20:08:36 +01:00
db = db_factory(init=init_script)
2021-04-26 20:07:00 +02:00
2022-01-27 20:08:36 +01:00
act = python_act('db')
2021-04-26 20:07:00 +02:00
@pytest.mark.version('>=4.0')
2022-01-27 20:08:36 +01:00
def test_1(act: Action):
with act.db.connect() as con:
c = con.cursor()
c.execute("insert into t(f) values(?)", ['W' * 1000])
# no commit here!
c.execute('select f from t order by 1')
c.fetchall()
# Passed.