# 障害票 975
# 4640(B+木用)のALL ROWS版

Begin;
Initialize;
InitializeSession "TESTDB";
Command "create database TESTDB";
Command "create table T (f int)";
Command "create all rows index I on T(f)";
Command "create table X (g int)";
Command "create table Y (h int)";

Command "insert T values (null),1,2,3";
Command "insert X values 2,2,2";
Command "insert Y values (null),(null),(null)";

Command "select * from T, X where T.f = X.g and (T.f is null or T.f = 1 or T.f = 2 or T.f = 3)";

Command "select * from T, Y where T.f = Y.h and (T.f is null or T.f = 1 or T.f = 2 or T.f = 3)";

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