Begin;
Initialize;
InitializeSession "TESTDB";
Command "create database TESTDB";
TerminateSession;
InitializeSession "TESTDB";
Command "create table T_2_0 (dec1 decimal(2,0))";
Command "insert T_2_0 values (null), (0), (1), (-1), (21), (-21), (65), (-65)";
Command "create table T_int_2_0 (int1 int)";
Command "insert T_int_2_0 values (null), (0), (1), (-1), (21), (-21), (65), (-65)";
Command "select * from T_2_0, T_int_2_0 where T_2_0.dec1 < T_int_2_0.int1";
Command "select * from T_2_0 where dec1 < 0";
Command "create table T_int_10_0 (int1 int)";
Command "insert T_int_10_0 values (null), (0), (1), (-1), (2109876543), (-2109876543), (2147483647), (-2147483648)";
Command "select * from T_2_0, T_int_10_0 where T_int_10_0.int1 > T_2_0.dec1";
Command "select * from T_2_0 where -1 > dec1";
Command "create table T_10_5 (dec1 decimal(10,5))";
Command "insert T_10_5 values (null), (0), (1), (-1), (21098.76543), (-21098.76543), (65432.10987), (-65432.10987)";
Command "select * from T_10_5, T_int_2_0 where T_10_5.dec1 > T_int_2_0.int1";
Command "select * from T_10_5 where dec1 > 0";
Command "select * from T_10_5, T_int_10_0 where T_int_10_0.int1 < T_10_5.dec1";
Command "select * from T_10_5 where -1 < dec1";
Command "create table T_36_36 (dec1 decimal(36,36))";
Command "insert T_36_36 values (null), (0), (0.210987654321098765432109876543210987), (-0.210987654321098765432109876543210987), (0.654321098765432109876543210987654321), (-0.654321098765432109876543210987654321)";
Command "select * from T_36_36, T_int_2_0 where T_int_2_0.int1 <= T_36_36.dec1";
Command "select * from T_36_36 where 0 <= dec1";
Command "select * from T_36_36, T_int_10_0 where T_36_36.dec1 >= T_int_10_0.int1";
Command "select * from T_36_36 where dec1 >= -1";
Command "create table T_2_1 (dec1 decimal(2,1))";
Command "insert T_2_1 values (null), (0), (1), (-1), (2.1), (-2.1), (6.5), (-6.5)";
Command "select * from T_2_1, T_int_2_0 where T_2_1.dec1 <= T_int_2_0.int1";
Command "select * from T_2_1 where dec1 <= -21";
Command "select * from T_2_1, T_int_10_0 where T_int_10_0.int1 >= T_2_1.dec1";
Command "select * from T_2_1 where null >= dec1";
Command "create table T_10_0 (dec1 decimal(10,0))";
Command "insert T_10_0 values (null), (0), (1), (-1), (2109876543), (-2109876543), (6543210987), (-6543210987)";
Command "select * from T_10_0, T_int_2_0 where T_int_2_0.int1 = T_10_0.dec1";
Command "select * from T_10_0 where -21 = dec1";
Command "select * from T_10_0, T_int_10_0 where T_10_0.dec1 != T_int_10_0.int1";
Command "select * from T_10_0 where dec1 != null";
Command "select * from T_10_0, T_int_2_0 where T_10_0.dec1 = T_int_2_0.int1";
Command "select * from T_10_0 where dec1 = 1";
Command "select * from T_10_0, T_int_10_0 where T_int_10_0.int1 != T_10_0.dec1";
Command "select * from T_10_0 where 2109876543 != dec1";
Command "select * from T_36_36, T_int_2_0 where T_int_2_0.int1 < T_36_36.dec1";
Command "select * from T_36_36 where 1 < dec1";
Command "select * from T_36_36, T_int_10_0 where T_36_36.dec1 > T_int_10_0.int1";
Command "select * from T_36_36 where dec1 > 2109876543";
Command "create table T_36_18 (dec1 decimal(36,18))";
Command "insert T_36_18 values (null), (0), (1), (-1), (210987654321098765.432109876543210987), (-210987654321098765.432109876543210987), (654321098765432109.876543210987654321), (-654321098765432109.876543210987654321)";
Command "select * from T_36_18, T_int_2_0 where T_int_2_0.int1 >= T_36_18.dec1";
Command "select * from T_36_18 where 0 >= dec1";
Command "select * from T_36_18, T_int_10_0 where T_36_18.dec1 <= T_int_10_0.int1";
Command "select * from T_36_18 where dec1 <= -1";
Command "create table T_10_10 (dec1 decimal(10,10))";
Command "insert T_10_10 values (null), (0), (0.2109876543), (-0.2109876543), (0.6543210987), (-0.6543210987)";
Command "select * from T_10_10, T_int_2_0 where T_10_10.dec1 < T_int_2_0.int1";
Command "select * from T_10_10 where dec1 < -21";
Command "select * from T_10_10, T_int_10_0 where T_int_10_0.int1 > T_10_10.dec1";
Command "select * from T_10_10 where null > dec1";
Command "create table T_36_0 (dec1 decimal(36,0))";
Command "insert T_36_0 values (null), (0), (1), (-1), (210987654321098765432109876543210987), (-210987654321098765432109876543210987), (654321098765432109876543210987654321), (-654321098765432109876543210987654321)";
Command "select * from T_36_0, T_int_2_0 where T_36_0.dec1 >= T_int_2_0.int1";
Command "select * from T_36_0 where dec1 >= -21";
Command "select * from T_36_0, T_int_10_0 where T_int_10_0.int1 <= T_36_0.dec1";
Command "select * from T_36_0 where null <= dec1";
Command "select * from T_2_1, T_int_2_0 where T_int_2_0.int1 != T_2_1.dec1";
Command "select * from T_2_1 where -21 != dec1";
Command "select * from T_2_1, T_int_10_0 where T_2_1.dec1 = T_int_10_0.int1";
Command "select * from T_2_1 where dec1 = null";
Command "select * from T_2_0, T_int_2_0 where T_2_0.dec1 != T_int_2_0.int1";
Command "select * from T_2_0 where dec1 != 1";
Command "select * from T_2_0, T_int_10_0 where T_int_10_0.int1 = T_2_0.dec1";
Command "select * from T_2_0 where 2109876543 = dec1";
Command "select * from T_2_0, T_int_2_0 where T_int_2_0.int1 <= T_2_0.dec1";
Command "select * from T_2_0 where 1 <= dec1";
Command "select * from T_2_0, T_int_10_0 where T_2_0.dec1 >= T_int_10_0.int1";
Command "select * from T_2_0 where dec1 >= 2109876543";
Command "select * from T_10_5, T_int_2_0 where T_int_2_0.int1 > T_10_5.dec1";
Command "select * from T_10_5 where -21 > dec1";
Command "select * from T_10_5, T_int_10_0 where T_10_5.dec1 < T_int_10_0.int1";
Command "select * from T_10_5 where dec1 < null";
Command "select * from T_36_36, T_int_2_0 where T_36_36.dec1 > T_int_2_0.int1";
Command "select * from T_36_36 where dec1 > 1";
Command "select * from T_36_36, T_int_10_0 where T_int_10_0.int1 < T_36_36.dec1";
Command "select * from T_36_36 where 2109876543 < dec1";
Command "select * from T_2_1, T_int_2_0 where T_2_1.dec1 = T_int_2_0.int1";
Command "select * from T_2_1 where dec1 = 0";
Command "select * from T_2_1, T_int_10_0 where T_int_10_0.int1 != T_2_1.dec1";
Command "select * from T_2_1 where -1 != dec1";
Command "select * from T_10_0, T_int_2_0 where T_10_0.dec1 <= T_int_2_0.int1";
Command "select * from T_10_0 where dec1 <= 0";
Command "select * from T_10_0, T_int_10_0 where T_int_10_0.int1 >= T_10_0.dec1";
Command "select * from T_10_0 where -1 >= dec1";
Command "select * from T_10_0, T_int_2_0 where T_int_2_0.int1 != T_10_0.dec1";
Command "select * from T_10_0 where 0 != dec1";
Command "select * from T_10_0, T_int_10_0 where T_10_0.dec1 = T_int_10_0.int1";
Command "select * from T_10_0 where dec1 = -1";
Command "select * from T_36_36, T_int_2_0 where T_int_2_0.int1 >= T_36_36.dec1";
Command "select * from T_36_36 where 1 >= dec1";
Command "select * from T_36_36, T_int_10_0 where T_36_36.dec1 <= T_int_10_0.int1";
Command "select * from T_36_36 where dec1 <= 2109876543";
Command "select * from T_36_18, T_int_2_0 where T_int_2_0.int1 = T_36_18.dec1";
Command "select * from T_36_18 where -21 = dec1";
Command "select * from T_36_18, T_int_10_0 where T_36_18.dec1 != T_int_10_0.int1";
Command "select * from T_36_18 where dec1 != null";
Command "select * from T_10_10, T_int_2_0 where T_10_10.dec1 >= T_int_2_0.int1";
Command "select * from T_10_10 where dec1 >= 0";
Command "select * from T_10_10, T_int_10_0 where T_int_10_0.int1 <= T_10_10.dec1";
Command "select * from T_10_10 where -1 <= dec1";
Command "select * from T_36_0, T_int_2_0 where T_int_2_0.int1 < T_36_0.dec1";
Command "select * from T_36_0 where 0 < dec1";
Command "select * from T_36_0, T_int_10_0 where T_36_0.dec1 > T_int_10_0.int1";
Command "select * from T_36_0 where dec1 > -1";
Command "select * from T_2_1, T_int_2_0 where T_2_1.dec1 < T_int_2_0.int1";
Command "select * from T_2_1 where dec1 < 1";
Command "select * from T_2_1, T_int_10_0 where T_int_10_0.int1 > T_2_1.dec1";
Command "select * from T_2_1 where 2109876543 > dec1";
Command "select * from T_2_0, T_int_2_0 where T_2_0.dec1 < T_int_2_0.int1";
Command "select * from T_2_0 where dec1 < -21";
Command "select * from T_2_0, T_int_10_0 where T_int_10_0.int1 > T_2_0.dec1";
Command "select * from T_2_0 where null > dec1";
Command "select * from T_2_0, T_int_2_0 where T_2_0.dec1 != T_int_2_0.int1";
Command "select * from T_2_0 where dec1 != -21";
Command "select * from T_2_0, T_int_10_0 where T_int_10_0.int1 = T_2_0.dec1";
Command "select * from T_2_0 where null = dec1";
Command "select * from T_10_5, T_int_2_0 where T_int_2_0.int1 <= T_10_5.dec1";
Command "select * from T_10_5 where 1 <= dec1";
Command "select * from T_10_5, T_int_10_0 where T_10_5.dec1 >= T_int_10_0.int1";
Command "select * from T_10_5 where dec1 >= 2109876543";
Command "select * from T_36_36, T_int_2_0 where T_int_2_0.int1 = T_36_36.dec1";
Command "select * from T_36_36 where -21 = dec1";
Command "select * from T_36_36, T_int_10_0 where T_36_36.dec1 != T_int_10_0.int1";
Command "select * from T_36_36 where dec1 != null";
Command "select * from T_2_1, T_int_2_0 where T_2_1.dec1 > T_int_2_0.int1";
Command "select * from T_2_1 where dec1 > 1";
Command "select * from T_2_1, T_int_10_0 where T_int_10_0.int1 < T_2_1.dec1";
Command "select * from T_2_1 where 2109876543 < dec1";
Command "select * from T_10_0, T_int_2_0 where T_int_2_0.int1 < T_10_0.dec1";
Command "select * from T_10_0 where 1 < dec1";
Command "select * from T_10_0, T_int_10_0 where T_10_0.dec1 > T_int_10_0.int1";
Command "select * from T_10_0 where dec1 > 2109876543";
Command "select * from T_10_0, T_int_2_0 where T_10_0.dec1 <= T_int_2_0.int1";
Command "select * from T_10_0 where dec1 <= -21";
Command "select * from T_10_0, T_int_10_0 where T_int_10_0.int1 >= T_10_0.dec1";
Command "select * from T_10_0 where null >= dec1";
Command "select * from T_36_36, T_int_2_0 where T_36_36.dec1 = T_int_2_0.int1";
Command "select * from T_36_36 where dec1 = 0";
Command "select * from T_36_36, T_int_10_0 where T_int_10_0.int1 != T_36_36.dec1";
Command "select * from T_36_36 where -1 != dec1";
Command "select * from T_36_18, T_int_2_0 where T_int_2_0.int1 > T_36_18.dec1";
Command "select * from T_36_18 where 1 > dec1";
Command "select * from T_36_18, T_int_10_0 where T_36_18.dec1 < T_int_10_0.int1";
Command "select * from T_36_18 where dec1 < 2109876543";
Command "select * from T_10_10, T_int_2_0 where T_10_10.dec1 = T_int_2_0.int1";
Command "select * from T_10_10 where dec1 = 1";
Command "select * from T_10_10, T_int_10_0 where T_int_10_0.int1 != T_10_10.dec1";
Command "select * from T_10_10 where 2109876543 != dec1";
Command "select * from T_36_0, T_int_2_0 where T_36_0.dec1 != T_int_2_0.int1";
Command "select * from T_36_0 where dec1 != 1";
Command "select * from T_36_0, T_int_10_0 where T_int_10_0.int1 = T_36_0.dec1";
Command "select * from T_36_0 where 2109876543 = dec1";
Command "select * from T_2_1, T_int_2_0 where T_int_2_0.int1 <= T_2_1.dec1";
Command "select * from T_2_1 where 0 <= dec1";
Command "select * from T_2_1, T_int_10_0 where T_2_1.dec1 >= T_int_10_0.int1";
Command "select * from T_2_1 where dec1 >= -1";
Command "select * from T_2_0, T_int_2_0 where T_int_2_0.int1 >= T_2_0.dec1";
Command "select * from T_2_0 where 0 >= dec1";
Command "select * from T_2_0, T_int_10_0 where T_2_0.dec1 <= T_int_10_0.int1";
Command "select * from T_2_0 where dec1 <= -1";
Command "select * from T_10_5, T_int_2_0 where T_int_2_0.int1 != T_10_5.dec1";
Command "select * from T_10_5 where -21 != dec1";
Command "select * from T_10_5, T_int_10_0 where T_10_5.dec1 = T_int_10_0.int1";
Command "select * from T_10_5 where dec1 = null";
Command "select * from T_10_0, T_int_2_0 where T_10_0.dec1 > T_int_2_0.int1";
Command "select * from T_10_0 where dec1 > 0";
Command "select * from T_10_0, T_int_10_0 where T_int_10_0.int1 < T_10_0.dec1";
Command "select * from T_10_0 where -1 < dec1";
Command "select * from T_36_36, T_int_2_0 where T_int_2_0.int1 > T_36_36.dec1";
Command "select * from T_36_36 where -21 > dec1";
Command "select * from T_36_36, T_int_10_0 where T_36_36.dec1 < T_int_10_0.int1";
Command "select * from T_36_36 where dec1 < null";
Command "drop table T_36_36";
Command "drop table T_10_0";
Command "drop table T_10_10";
Command "drop table T_int_2_0";
Command "drop table T_2_1";
Command "drop table T_int_10_0";
Command "drop table T_36_0";
Command "drop table T_2_0";
Command "drop table T_10_5";
Command "drop table T_36_18";
TerminateSession;
InitializeSession "TESTDB";
Command "drop database TESTDB";
TerminateSession;
Terminate;
End;
