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
|
2022-02-02 15:46:19 +01:00
|
|
|
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 = """
|
2021-12-15 22:02:07 +01:00
|
|
|
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:
|
2021-12-15 22:02:07 +01:00
|
|
|
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.
|