mirror of
https://github.com/FirebirdSQL/firebird-qa.git
synced 2025-01-22 13:33:07 +01:00
removed dependency on separate .fbk file: got script which forces crash on FB 2.5.0 without it, but one need to re-connect. Put this inside test code.
This commit is contained in:
parent
56634f41e9
commit
418ef58677
@ -12,17 +12,24 @@ FBTEST: bugs.core_3557
|
||||
import pytest
|
||||
from firebird.qa import *
|
||||
|
||||
db = db_factory(from_backup='core3557.fbk')
|
||||
db = db_factory()
|
||||
|
||||
test_script = """
|
||||
create table test (id int primary key);
|
||||
commit;
|
||||
|
||||
-- RECONNECT IS MANDATORY HERE IN ORDER TO GET CRASH:
|
||||
-- ##################################################
|
||||
connect '$(DSN)' user 'SYSDBA' password 'masterkey';
|
||||
|
||||
-- Confirmed for 2.5.0 only: server crashes on running the following EB. 26.02.2015
|
||||
-- All subsequent releases should produce no stdout & stderr.
|
||||
set term ^;
|
||||
execute block as
|
||||
begin
|
||||
execute statement 'drop table t';
|
||||
execute statement 'drop table test';
|
||||
in autonomous transaction do
|
||||
execute statement ('insert into t values (1)');
|
||||
execute statement ('insert into test values (1)');
|
||||
end ^
|
||||
"""
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user