Skip to content

Commit

Permalink
QA-442 for CORE-3058
Browse files Browse the repository at this point in the history
  • Loading branch information
pmakowski committed Nov 28, 2013
1 parent b2d0198 commit bccd4a4
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions tests/bugs/core_3058.fbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
'id': 'bugs.core_3058',
'qmid': None,
'tracker_id': 'CORE-3058',
'title': 'New generators are created with wrong value when more than 32K generators was previously created',
'description': '',
'min_versions': '2.5.1',
'versions': [
{
'firebird_version': '2.5.1',
'platform': 'All',
'page_size': '4096',
'init_script': """set term !;
execute block
as
declare n integer = 0;
declare x integer;
begin
while (n < 33000)
do
begin
in autonomous transaction do
execute statement 'create sequence s' || n;
in autonomous transaction do
execute statement 'select gen_id(s' || n || ', 1000) from rdb$database' into x;
in autonomous transaction do
execute statement 'drop sequence s' || n;

n = n + 1;
end
end!
set term ;!""",
'test_type': 'ISQL',
'test_script': """create sequence s1;
show sequence;""",
'expected_stdout': """Database: localhost:C:\Users\win7\Firebird_tests\fbt-repository\tmp\bugs.core_3058.fdb, User: SYSDBA
SQL> SQL> Generator S1, current value is 0
SQL>"""
}
]
}

0 comments on commit bccd4a4

Please sign in to comment.