# select[1]/record
#image型のデータについては等号や不等号による検索ができないことを確かめる
Begin;
Initialize;
InitializeSession "";
Command "create database TESTDB";
TerminateSession;

InitializeSession "TESTDB";
Command  "create table T1(C1 image)";
Command  "create table T2(C1 image)";
Command  "insert into T1 (C1) values (?)" [binaryfile "..\\..\\doc\\rnd10k"];
Command  "insert into T1 (C1) values (?)" [binaryfile "..\\..\\doc\\rnd10k"];
Command  "insert into T1 (C1) values (?)" [binaryfile "..\\..\\doc\\rnd20k"];
Command  "insert into T2 (C1) values (?)" [binaryfile "..\\..\\doc\\rnd50k"];
Command  "select C1 from T1";
Command  "select count(*) from T1";
Command  "select count(*) from T1 where C1=?" [binaryfile "..\\..\\doc\\rnd10k"];
Command  "select count(*) from T1 where C1<?" [binaryfile "..\\..\\doc\\rnd10k"];
Command  "select count(*) from T1 where C1>?" [binaryfile "..\\..\\doc\\rnd10k"];
Command  "select count(*) from T1 where C1<=?" [binaryfile "..\\..\\doc\\rnd10k"];
Command  "select count(*) from T1 where C1>=?" [binaryfile "..\\..\\doc\\rnd10k"];
Command  "select count(*) from T1 where C1<>?" [binaryfile "..\\..\\doc\\rnd10k"];
Command  "select count(*) from T1 where C1 is  null";
Command  "select count(*) from T1 where C1 is  not null";
Command  "drop table T1";
Command  "drop table T2";

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