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

30 lines
542 B
Python

#coding:utf-8
"""
ID: issue-3696
ISSUE: 3696
TITLE: Server crashes while recreating the table with a NULL -> NOT NULL change
DESCRIPTION:
JIRA: CORE-1000
"""
import pytest
from firebird.qa import *
db = db_factory()
test_script = """
create table test (a int);
commit;
insert into test (a) values (null);
commit;
recreate table test (b int not null);
commit; -- crash here
"""
act = isql_act('db', test_script)
@pytest.mark.version('>=3.0')
def test_1(act: Action):
act.execute()