Begin;
Initialize;
InitializeSession "";
Command "create database TESTDB";
TerminateSession;
InitializeSession "TESTDB";
Command  "create table T(C ntext array[no limit])";
Command  "insert into T(C) values (?)" [["ほげ"]];
Command  "insert into T(C) values (?)" [["ほげほげ"]];
Command  "insert into T(C) values (?)" [["げほげほ"]];
Command  "insert into T(C) values (?)" [["はらほげ"]];
Command  "insert into T(C) values (?)" [["ほえ"]];
Command  "insert into T(C) values (?)" [[""]];
Command  "select C from T where not C like ?" ["ほげ"];
Command  "select C from T where not C like ?" ["%ほげ"];
Command  "select C from T where not C like ?" ["ほげ%"];
Command  "select C from T where not C like ?" ["%ほげ%"];
Command "create fulltext index I on T(C) hint 'sectionized, delayed, inverted=(nolocation=true, normalized=true)'";
Command  "select C from T where not C like ?" ["ほげ"];
Command  "select C from T where not C like ?" ["%ほげ"];
Command  "select C from T where not C like ?" ["ほげ%"];
Command  "select C from T where not C like ?" ["%ほげ%"];
Command  "drop table T";

Command  "create table T1(C1 int, C2 ntext array [no limit])";
Command  "create fulltext index I1_2 on T1(C2) hint 'sectionized ,inverted=(nolocation=true)'";
Command  "insert into T1 (C1, C2) values (?, ?)" [1, ["ほげ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [2, [null, "ほげほげ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [3, ["ほげほげ", null]];
Command  "insert into T1 (C1, C2) values (?, ?)" [4, [null, "ああああ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [5, ["ああああ", null]];
Command  "insert into T1 (C1, C2) values (?, ?)" [6, ["ほ", "げ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [7, ["ほげ", null, "ほげ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [8, ["ああ", null, "ほげ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [9, ["ほげ", null, "ああ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [10, ["ほ", null, "げ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [11, [null, "ほげ", null]];
Command  "select C1, sectionized(C2) from T1 where C2 like ?" ["%ほげ%"];
Command  "drop table T1";

Command  "create table T1(C1 int hint heap, C2 ntext array [no limit] hint heap)";
Command  "create fulltext index I1_2 on T1(C2) hint 'sectionized ,inverted=(nolocation=true)'";
Command  "insert into T1 (C1, C2) values (?, ?)" [1, ["ほげ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [2, [null, "ほげほげ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [3, ["ほげほげ", null]];
Command  "insert into T1 (C1, C2) values (?, ?)" [4, [null, "ああああ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [5, ["ああああ", null]];
Command  "insert into T1 (C1, C2) values (?, ?)" [6, ["ほ", "げ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [7, ["ほげ", null, "ほげ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [8, ["ああ", null, "ほげ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [9, ["ほげ", null, "ああ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [10, ["ほ", null, "げ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [11, [null, "ほげ", null]];
Command  "select C1, sectionized(C2) from T1 where C2 like ?" ["%ほげ%"];
Command  "drop table T1";

Command  "create table T1(C1 int, C2 ntext array [no limit])";
Command  "create fulltext index I1_2 on T1(C2) hint 'sectionized, delayed ,inverted=(nolocation=true)'";
Command  "insert into T1 (C1, C2) values (?, ?)" [1, ["ほげ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [2, [null, "ほげほげ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [3, ["ほげほげ", null]];
Command  "insert into T1 (C1, C2) values (?, ?)" [4, [null, "ああああ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [5, ["ああああ", null]];
Command  "insert into T1 (C1, C2) values (?, ?)" [6, ["ほ", "げ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [7, ["ほげ", null, "ほげ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [8, ["ああ", null, "ほげ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [9, ["ほげ", null, "ああ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [10, ["ほ", null, "げ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [11, [null, "ほげ", null]];
Command  "select C1, sectionized(C2) from T1 where C2 like ?" ["%ほげ%"];
Command  "drop table T1";

Command  "create table T1(C1 int hint heap, C2 ntext array [no limit] hint heap)";
Command  "create fulltext index I1_2 on T1(C2) hint 'sectionized, delayed ,inverted=(nolocation=true)'";
Command  "insert into T1 (C1, C2) values (?, ?)" [1, ["ほげ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [2, [null, "ほげほげ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [3, ["ほげほげ", null]];
Command  "insert into T1 (C1, C2) values (?, ?)" [4, [null, "ああああ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [5, ["ああああ", null]];
Command  "insert into T1 (C1, C2) values (?, ?)" [6, ["ほ", "げ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [7, ["ほげ", null, "ほげ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [8, ["ああ", null, "ほげ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [9, ["ほげ", null, "ああ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [10, ["ほ", null, "げ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [11, [null, "ほげ", null]];
Command  "select C1, sectionized(C2) from T1 where C2 like ?" ["%ほげ%"];
Command  "drop table T1";

Command  "create table T1(C1 int, C2 ntext array [no limit])";
Command  "create fulltext index I1_2 on T1(C2) hint 'sectionized, inverted=(nolocation=true, normalized=true)'";
Command  "insert into T1 (C1, C2) values (?, ?)" [1, ["ほげ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [2, [null, "ほげほげ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [3, ["ほげほげ", null]];
Command  "insert into T1 (C1, C2) values (?, ?)" [4, [null, "ああああ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [5, ["ああああ", null]];
Command  "insert into T1 (C1, C2) values (?, ?)" [6, ["ほ", "げ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [7, ["ほげ", null, "ほげ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [8, ["ああ", null, "ほげ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [9, ["ほげ", null, "ああ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [10, ["ほ", null, "げ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [11, [null, "ほげ", null]];
Command  "select C1, sectionized(C2) from T1 where C2 like ?" ["%ほげ%"];
Command  "drop table T1";

Command  "create table T1(C1 int hint heap, C2 ntext array [no limit] hint heap)";
Command  "create fulltext index I1_2 on T1(C2) hint 'sectionized, inverted=(nolocation=true, normalized=true)'";
Command  "insert into T1 (C1, C2) values (?, ?)" [1, ["ほげ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [2, [null, "ほげほげ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [3, ["ほげほげ", null]];
Command  "insert into T1 (C1, C2) values (?, ?)" [4, [null, "ああああ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [5, ["ああああ", null]];
Command  "insert into T1 (C1, C2) values (?, ?)" [6, ["ほ", "げ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [7, ["ほげ", null, "ほげ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [8, ["ああ", null, "ほげ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [9, ["ほげ", null, "ああ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [10, ["ほ", null, "げ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [11, [null, "ほげ", null]];
Command  "select C1, sectionized(C2) from T1 where C2 like ?" ["%ほげ%"];
Command  "drop table T1";

Command  "create table T1(C1 int, C2 ntext array [no limit])";
Command  "create fulltext index I1_2 on T1(C2) hint 'sectionized, delayed, inverted=(nolocation=true, normalized=true)'";
Command  "insert into T1 (C1, C2) values (?, ?)" [1, ["ほげ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [2, [null, "ほげほげ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [3, ["ほげほげ", null]];
Command  "insert into T1 (C1, C2) values (?, ?)" [4, [null, "ああああ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [5, ["ああああ", null]];
Command  "insert into T1 (C1, C2) values (?, ?)" [6, ["ほ", "げ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [7, ["ほげ", null, "ほげ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [8, ["ああ", null, "ほげ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [9, ["ほげ", null, "ああ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [10, ["ほ", null, "げ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [11, [null, "ほげ", null]];
Command  "select C1, sectionized(C2) from T1 where C2 like ?" ["%ほげ%"];
Command  "drop table T1";

Command  "create table T1(C1 int hint heap, C2 ntext array [no limit] hint heap)";
Command  "create fulltext index I1_2 on T1(C2) hint 'sectionized, delayed, inverted=(nolocation=true, normalized=true)'";
Command  "insert into T1 (C1, C2) values (?, ?)" [1, ["ほげ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [2, [null, "ほげほげ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [3, ["ほげほげ", null]];
Command  "insert into T1 (C1, C2) values (?, ?)" [4, [null, "ああああ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [5, ["ああああ", null]];
Command  "insert into T1 (C1, C2) values (?, ?)" [6, ["ほ", "げ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [7, ["ほげ", null, "ほげ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [8, ["ああ", null, "ほげ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [9, ["ほげ", null, "ああ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [10, ["ほ", null, "げ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [11, [null, "ほげ", null]];
Command  "select C1, sectionized(C2) from T1 where C2 like ?" ["%ほげ%"];
Command  "drop table T1";

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