# 障害票 1221
# transaction read write  rollback compensation
# commitあるいはrollbackの動作確認をする。
# 各々のスクリプトごとに各種の論理ファイルを試す。
Begin;

SetSystemParameter "Buffer_FlushPageCoefficient" 17;
SetSystemParameter "Buffer_NormalPoolSize" "20M";
SetSystemParameter "Checkpoint_EnableFileSynchronizer" "SIZE";
SetSystemParameter "CheckPoint_Period" 2147483647;

Initialize;
InitializeSession "TESTDB";

Command  "create database TESTDB";
Command  "create table T1(C1 ntext array [no limit] hint heap)";
Command  "create fulltext index I1_1 on T1(C1) hint 'inverted=(normalized=true)'";
Command "checkpoint 1";
# 補償コマンドの動作確認

Command  "insert into T1 (C1) values (?)" [[textsjisfile "..\\..\\doc\\hello.txt"]];
Command  "insert into T1 (C1) values (?)" [[textsjisfile "..\\..\\doc\\ricoh.txt"]];
Command  "insert into T1 (C1) values (?)" [[textsjisfile "..\\..\\doc\\Teihon.txt"]];
Command  "insert into T1 (C1) values (?)" [[textsjisfile "..\\..\\doc\\takekurabe.txt"]];
Command "checkpoint 1";
Command "delete from T1 where C1 = ?" [[textsjisfile "..\\..\\doc\\hello.txt"]];
Command "delete from T1 where C1 = ?" [[textsjisfile "..\\..\\doc\\Teihon.txt"]];
Command "delete from T1 where C1 = ?" [[textsjisfile "..\\..\\doc\\takekurabe.txt"]];
Command "sync 1";

Command  "insert into T1 (C1) values (?)" [[textsjisfile "..\\..\\doc\\Teihon.txt"]];
Command  "insert into T1 (C1) values (?)" [[textsjisfile "..\\..\\doc\\takekurabe.txt"]];

Command  "insert into T1 (C1) values (?)" [[textsjisfile "..\\..\\doc\\Teihon.txt"]];
Command  "insert into T1 (C1) values (?)" [[textsjisfile "..\\..\\doc\\takekurabe.txt"]];

Command  "insert into T1 (C1) values (?)" [[textsjisfile "..\\..\\doc\\Teihon.txt"]];
Command  "insert into T1 (C1) values (?)" [[textsjisfile "..\\..\\doc\\takekurabe.txt"]];

Sleep 60000;

End;
