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

32 lines
614 B
Python
Raw Normal View History

#coding:utf-8
2022-01-27 20:08:36 +01:00
"""
ID: issue-3386
ISSUE: 3386
TITLE: recreate table T with PK or UK is impossible after duplicate typing w/o commit
when ISQL is launched in AUTODDL=OFF mode
2022-01-27 20:08:36 +01:00
DESCRIPTION:
JIRA: CORE-3529
FBTEST: bugs.gh_3886
2022-01-27 20:08:36 +01:00
"""
2022-01-27 20:08:36 +01:00
import pytest
from firebird.qa import *
2022-01-27 20:08:36 +01:00
db = db_factory()
2022-01-27 20:08:36 +01:00
test_script = """
set autoddl off;
recreate table t(id int primary key);
recreate table t(id int primary key);
2022-01-27 20:08:36 +01:00
commit;
commit; -- yes, 2nd time.
exit;
"""
2022-01-27 20:08:36 +01:00
act = isql_act('db', test_script)
@pytest.mark.version('>=3.0.8')
2022-01-27 20:08:36 +01:00
def test_1(act: Action):
act.execute()