# Skip Purify BoundsChecker

Begin;
Initialize;
InitializeSession "TESTDB";
Command "create database TESTDB";
TerminateSession;
InitializeSession "TESTDB";
#
# B+木の大量データテスト -- 非複合索引 NULLを大量挿入
#

Command "create table T(c1 char(14))";
Command "insert into T values ((null))";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "select count(*) from T";
Command "create index I on T(c1)";
BeginTimeSpan;
Command "verify index I cascade continue";
EndTimeSpan;
Command "select min(c1) from T";
Command "select max(c1) from T";
Command "select min(c1), max(c1) from T";
Command "insert into T values ('Zaandam')";
Command "select min(c1) from T";
Command "select max(c1) from T";
Command "select min(c1), max(c1) from T";
Command "update T set c1 = (null) where c1 is not null";
Command "insert into T values ('Zabaean')";
Command "update T set c1 = 'zabaglione' where c1 is not null";
Command "delete from T where c1 is not null";
BeginTimeSpan;
Command "verify index I cascade continue";
EndTimeSpan;
Command "delete from T where c1 is null";
BeginTimeSpan;
Command "verify index I cascade continue";
EndTimeSpan;
Command "drop index I";
Command "drop table T";

Command "create table T(c1 int)";
Command "insert into T values ((null))";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "select count(*) from T";
Command "create index I on T(c1)";
Command "verify index I cascade continue";
Command "select min(c1) from T";
Command "select max(c1) from T";
Command "select min(c1), max(c1) from T";
Command "insert into T values (1)";
Command "select min(c1) from T";
Command "select max(c1) from T";
Command "select min(c1), max(c1) from T";
Command "update T set c1 = (null) where c1 is not null";
Command "insert into T values (524287)";
Command "update T set c1 = 1048577 where c1 is not null";
Command "delete from T where c1 is not null";
Command "verify index I cascade continue";
Command "delete from T where c1 is null";
Command "verify index I cascade continue";
Command "drop index I";
Command "drop table T";

Command "create table T(c1 nchar(14))";
Command "insert into T values ((null))";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "select count(*) from T";
Command "create all rows index I on T(c1)";
Command "verify index I cascade continue";
Command "select min(c1) from T";
Command "select max(c1) from T";
Command "select min(c1), max(c1) from T";
Command "insert into T values ('Zaandam')";
Command "select min(c1) from T";
Command "select max(c1) from T";
Command "select min(c1), max(c1) from T";
Command "update T set c1 = (null) where c1 is not null";
Command "insert into T values ('Zabaean')";
Command "update T set c1 = 'zabaglione' where c1 is not null";
Command "delete from T where c1 is not null";
Command "verify index I cascade continue";
Command "delete from T where c1 is null";
Command "verify index I cascade continue";
Command "drop index I";
Command "drop table T";

Command "create table T(c1 char(14))";
Command "insert into T values ((null))";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "select count(*) from T";
Command "create index I on T(c1)";
Command "verify index I cascade continue";
Command "select min(c1) from T";
Command "select max(c1) from T";
Command "select min(c1), max(c1) from T";
Command "insert into T values ('Zaandam')";
Command "select min(c1) from T";
Command "select max(c1) from T";
Command "select min(c1), max(c1) from T";
Command "update T set c1 = (null) where c1 is not null";
Command "insert into T values ('Zabaean')";
Command "update T set c1 = 'zabaglione' where c1 is not null";
Command "delete from T where c1 is not null";
Command "verify index I cascade continue";
Command "delete from T where c1 is null";
Command "verify index I cascade continue";
Command "drop index I";
Command "drop table T";

Command "create table T(c1 float)";
Command "insert into T values ((null))";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "select count(*) from T";
Command "create all rows index I on T(c1)";
Command "verify index I cascade continue";
Command "select min(c1) from T";
Command "select max(c1) from T";
Command "select min(c1), max(c1) from T";
Command "insert into T values (3.141591)";
Command "select min(c1) from T";
Command "select max(c1) from T";
Command "select min(c1), max(c1) from T";
Command "update T set c1 = (null) where c1 is not null";
Command "insert into T values (3.665877)";
Command "update T set c1 = 4.190167 where c1 is not null";
Command "delete from T where c1 is not null";
Command "verify index I cascade continue";
Command "delete from T where c1 is null";
Command "verify index I cascade continue";
Command "drop index I";
Command "drop table T";

Command "create table T(c1 varchar(14) hint nontruncate)";
Command "insert into T values ((null))";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "insert into T select * from T";
Command "select count(*) from T";
Command "create all rows index I on T(c1)";
Command "verify index I cascade continue";
Command "select min(c1) from T";
Command "select max(c1) from T";
Command "select min(c1), max(c1) from T";
Command "insert into T values ('Zaandam')";
Command "select min(c1) from T";
Command "select max(c1) from T";
Command "select min(c1), max(c1) from T";
Command "update T set c1 = (null) where c1 is not null";
Command "insert into T values ('Zabaean')";
Command "update T set c1 = 'zabaglione' where c1 is not null";
Command "delete from T where c1 is not null";
Command "verify index I cascade continue";
Command "delete from T where c1 is null";
Command "verify index I cascade continue";
Command "drop index I";
Command "drop table T";

TerminateSession;
InitializeSession "TESTDB";
Command "drop database TESTDB";
TerminateSession;
Terminate;
End;
