# lang情報のついた全文索引のテスト(scalar, delayed, irregular)

Begin;
Initialize;
InitializeSession "DefaultDB";

# 表を作成
Command "create table T (N int, C ntext, L language)";
Command "create index T_I on T(N)";

# 索引作成
Command "create fulltext index FTIndex on T(C) language column L hint 'delayed, inverted=(normalized=true, indexing=dual, tokenizer=DUAL:JAP:ALL:1 @NORMRSCID:1 @UNARSCID:1)'";

# 以下のコマンドは全て失敗「しない」(2003-03-17)

#insert
CreatePreparedCommand "ins" "insert into T (N, C, L) values (?, ?, ?)";
PreparedCommand "ins" [4, textsjisfile "..\\..\\doc\\introduction.txt", null];
PreparedCommand "ins" [5, null, null];
ErasePreparedCommand "ins";

Command "select N from T";
# verify
Command "verify index FTIndex cascade continue";

CreatePreparedCommand "upd" "update T set C=? where N=?";
PreparedCommand "upd" [textsjisfile "..\\..\\doc\\introduction.txt", 5];
ErasePreparedCommand "upd";

Command "select C from T";
# verify
Command "verify index FTIndex cascade continue";

#- 全文ファイルテスト用の表を消去
Command "drop table T";

TerminateSession;
Terminate;
End;
