Begin;
Initialize;
InitializeSession  "TESTDB";
Command "create database TESTDB";
TerminateSession;
InitializeSession  "TESTDB";
Command "create table T(f1 int, f2 int)";
Command "create  index I_f1 on T(f1)";
Command "insert T values (?,?),(?,?),(?,?),(?,?),(?,?),(?,?),(?,?),(?,?),(?,?),(?,?)" [6543210,-34567890,-34567890,2147483647,2147483647,-2147483648,-2147483648,0,0,1,1,-1,-1,6543210,6543210,-34567890,-34567890,2147483647,2147483647,-2147483648];
CreatePreparedCommand "sel1" "select * from T where f1 in ((-2147483648),6543210,(-34567890),2147483647,(-2147483648))";
PreparedCommand "sel1" [];
PreparedCommand "sel1" [];
Command "start transaction read write";
PreparedCommand "sel1" [];
Command "commit";
ErasePreparedCommand "sel1";
CreatePreparedCommand "sel2" "select * from T where f1 in ((-2147483648),6543210,(-34567890),2147483647,(-2147483648)) or f2 > -5000000 limit 1";
PreparedCommand "sel2" [];
PreparedCommand "sel2" [];
Command "start transaction read write";
PreparedCommand "sel2" [];
Command "commit";
ErasePreparedCommand "sel2";
CreatePreparedCommand "sel3" "select * from T where f1 in (?,6543210,(-34567890),2147483647,(-2147483648)) limit 1";
PreparedCommand "sel3" [-2147483648];
PreparedCommand "sel3" [-2147483648];
Command "start transaction read write";
PreparedCommand "sel3" [-2147483648];
Command "commit";
ErasePreparedCommand "sel3";
CreatePreparedCommand "sel4" "select * from T where f1 in (?,6543210,(-34567890),2147483647,(-2147483648)) or f2 > -5000000";
PreparedCommand "sel4" [-2147483648];
PreparedCommand "sel4" [-2147483648];
Command "start transaction read write";
PreparedCommand "sel4" [-2147483648];
Command "commit";
ErasePreparedCommand "sel4";
CreatePreparedCommand "sel5" "select * from T where not(f1 in ((-2147483648),?,(-34567890),2147483647,(-2147483648)))";
PreparedCommand "sel5" [6543210];
PreparedCommand "sel5" [6543210];
Command "start transaction read write";
PreparedCommand "sel5" [6543210];
Command "commit";
ErasePreparedCommand "sel5";
CreatePreparedCommand "sel6" "select * from T where f1 in ((-2147483648),?,(-34567890),2147483647,(-2147483648)) limit 1";
PreparedCommand "sel6" [6543210];
PreparedCommand "sel6" [6543210];
Command "start transaction read write";
PreparedCommand "sel6" [6543210];
Command "commit";
ErasePreparedCommand "sel6";
CreatePreparedCommand "sel7" "select * from T where not(f1 in ((-2147483648),6543210,(-34567890),2147483647,?)) limit 1";
PreparedCommand "sel7" [-2147483648];
PreparedCommand "sel7" [-2147483648];
Command "start transaction read write";
PreparedCommand "sel7" [-2147483648];
Command "commit";
ErasePreparedCommand "sel7";
CreatePreparedCommand "sel8" "select * from T where f1 in ((-2147483648),6543210,(-34567890),2147483647,?)";
PreparedCommand "sel8" [-2147483648];
PreparedCommand "sel8" [-2147483648];
Command "start transaction read write";
PreparedCommand "sel8" [-2147483648];
Command "commit";
ErasePreparedCommand "sel8";
CreatePreparedCommand "sel9" "select * from T where f1 in (?,?,?,?,(-2147483648)) or f2 > -5000000";
PreparedCommand "sel9" [-2147483648,6543210,-34567890,2147483647];
PreparedCommand "sel9" [-2147483648,6543210,-34567890,2147483647];
Command "start transaction read write";
PreparedCommand "sel9" [-2147483648,6543210,-34567890,2147483647];
Command "commit";
ErasePreparedCommand "sel9";
CreatePreparedCommand "sel10" "select * from T where not(f1 in (?,?,?,?,(-2147483648))) limit 1";
PreparedCommand "sel10" [-2147483648,6543210,-34567890,2147483647];
PreparedCommand "sel10" [-2147483648,6543210,-34567890,2147483647];
Command "start transaction read write";
PreparedCommand "sel10" [-2147483648,6543210,-34567890,2147483647];
Command "commit";
ErasePreparedCommand "sel10";
CreatePreparedCommand "sel11" "select * from T where not(f1 in ((-2147483648),6543210,(-34567890),2147483647,(-2147483648)))";
PreparedCommand "sel11" [];
PreparedCommand "sel11" [];
Command "start transaction read write";
PreparedCommand "sel11" [];
Command "commit";
ErasePreparedCommand "sel11";
CreatePreparedCommand "sel12" "select * from T where not(f1 in (?,6543210,(-34567890),2147483647,(-2147483648)))";
PreparedCommand "sel12" [-2147483648];
PreparedCommand "sel12" [-2147483648];
Command "start transaction read write";
PreparedCommand "sel12" [-2147483648];
Command "commit";
ErasePreparedCommand "sel12";
CreatePreparedCommand "sel13" "select * from T where f1 in ((-2147483648),?,(-34567890),2147483647,(-2147483648)) or f2 > -5000000 limit 1";
PreparedCommand "sel13" [6543210];
PreparedCommand "sel13" [6543210];
Command "start transaction read write";
PreparedCommand "sel13" [6543210];
Command "commit";
ErasePreparedCommand "sel13";
CreatePreparedCommand "sel14" "select * from T where f1 in ((-2147483648),6543210,(-34567890),2147483647,?) or f2 > -5000000";
PreparedCommand "sel14" [-2147483648];
PreparedCommand "sel14" [-2147483648];
Command "start transaction read write";
PreparedCommand "sel14" [-2147483648];
Command "commit";
ErasePreparedCommand "sel14";
CreatePreparedCommand "sel15" "select * from T where f1 in (?,?,?,?,(-2147483648))";
PreparedCommand "sel15" [-2147483648,6543210,-34567890,2147483647];
PreparedCommand "sel15" [-2147483648,6543210,-34567890,2147483647];
Command "start transaction read write";
PreparedCommand "sel15" [-2147483648,6543210,-34567890,2147483647];
Command "commit";
ErasePreparedCommand "sel15";
Command "drop table T";
TerminateSession;
InitializeSession  "TESTDB";
Command "drop database TESTDB";
TerminateSession;
Terminate;
End;
