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_bigint_2_0 (bigint1 bigint)";
Command "insert T_bigint_2_0 values (null), (0), (1), (-1), (21), (-21), (65), (-65)";
Command "select * from T_2_0, T_bigint_2_0 where T_2_0.dec1 < T_bigint_2_0.bigint1";
Command "select * from T_2_0 where dec1 < 0";
Command "create table T_bigint_19_0 (bigint1 bigint)";
Command "insert T_bigint_19_0 values (null), (0), (1), (-1), (2109876543210987654), (-2109876543210987654), (6543210987654321098), (-6543210987654321098)";
Command "select * from T_2_0, T_bigint_19_0 where T_bigint_19_0.bigint1 > T_2_0.dec1";
Command "select * from T_2_0 where -1 > dec1";
Command "create table T_19_9 (dec1 decimal(19,9))";
Command "insert T_19_9 values (null), (0), (1), (-1), (2109876543.210987654), (-2109876543.210987654), (6543210987.654321098), (-6543210987.654321098)";
Command "select * from T_19_9, T_bigint_2_0 where T_19_9.dec1 > T_bigint_2_0.bigint1";
Command "select * from T_19_9 where dec1 > 0";
Command "select * from T_19_9, T_bigint_19_0 where T_bigint_19_0.bigint1 < T_19_9.dec1";
Command "select * from T_19_9 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_bigint_2_0 where T_bigint_2_0.bigint1 <= T_36_36.dec1";
Command "select * from T_36_36 where 0 <= dec1";
Command "select * from T_36_36, T_bigint_19_0 where T_36_36.dec1 >= T_bigint_19_0.bigint1";
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_bigint_2_0 where T_2_1.dec1 <= T_bigint_2_0.bigint1";
Command "select * from T_2_1 where dec1 <= -21";
Command "select * from T_2_1, T_bigint_19_0 where T_bigint_19_0.bigint1 >= T_2_1.dec1";
Command "select * from T_2_1 where 6543210987654321098 >= dec1";
Command "create table T_19_0 (dec1 decimal(19,0))";
Command "insert T_19_0 values (null), (0), (1), (-1), (2109876543210987654), (-2109876543210987654), (6543210987654321098), (-6543210987654321098)";
Command "select * from T_19_0, T_bigint_2_0 where T_bigint_2_0.bigint1 = T_19_0.dec1";
Command "select * from T_19_0 where -21 = dec1";
Command "select * from T_19_0, T_bigint_19_0 where T_19_0.dec1 != T_bigint_19_0.bigint1";
Command "select * from T_19_0 where dec1 != 6543210987654321098";
Command "select * from T_19_0, T_bigint_2_0 where T_19_0.dec1 = T_bigint_2_0.bigint1";
Command "select * from T_19_0 where dec1 = null";
Command "select * from T_19_0, T_bigint_2_0 where T_bigint_2_0.bigint1 != T_19_0.dec1";
Command "select * from T_19_0 where 1 != dec1";
Command "select * from T_36_36, T_bigint_2_0 where T_bigint_2_0.bigint1 < T_36_36.dec1";
Command "select * from T_36_36 where null < dec1";
Command "select * from T_36_36, T_bigint_2_0 where T_36_36.dec1 > T_bigint_2_0.bigint1";
Command "select * from T_36_36 where dec1 > 1";
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_bigint_19_0 where T_36_18.dec1 < T_bigint_19_0.bigint1";
Command "select * from T_36_18 where dec1 < 2109876543210987654";
Command "select * from T_36_18, T_bigint_2_0 where T_bigint_2_0.bigint1 > T_36_18.dec1";
Command "select * from T_36_18 where -65 > dec1";
Command "create table T_19_19 (dec1 decimal(19,19))";
Command "insert T_19_19 values (null), (0), (0.2109876543210987654), (-0.2109876543210987654), (0.6543210987654321098), (-0.6543210987654321098)";
Command "select * from T_19_19, T_bigint_19_0 where T_bigint_19_0.bigint1 <= T_19_19.dec1";
Command "select * from T_19_19 where 2109876543210987654 <= dec1";
Command "select * from T_19_19, T_bigint_2_0 where T_19_19.dec1 >= T_bigint_2_0.bigint1";
Command "select * from T_19_19 where dec1 >= -65";
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_bigint_2_0 where T_bigint_2_0.bigint1 >= T_36_0.dec1";
Command "select * from T_36_0 where 0 >= dec1";
Command "select * from T_36_0, T_bigint_19_0 where T_36_0.dec1 <= T_bigint_19_0.bigint1";
Command "select * from T_36_0 where dec1 <= -1";
Command "select * from T_2_1, T_bigint_2_0 where T_2_1.dec1 != T_bigint_2_0.bigint1";
Command "select * from T_2_1 where dec1 != -21";
Command "select * from T_2_1, T_bigint_19_0 where T_bigint_19_0.bigint1 = T_2_1.dec1";
Command "select * from T_2_1 where 6543210987654321098 = dec1";
Command "select * from T_2_0, T_bigint_2_0 where T_bigint_2_0.bigint1 < T_2_0.dec1";
Command "select * from T_2_0 where -21 < dec1";
Command "select * from T_2_0, T_bigint_19_0 where T_2_0.dec1 > T_bigint_19_0.bigint1";
Command "select * from T_2_0 where dec1 > 6543210987654321098";
Command "select * from T_2_0, T_bigint_2_0 where T_bigint_2_0.bigint1 != T_2_0.dec1";
Command "select * from T_2_0 where null != dec1";
Command "select * from T_2_0, T_bigint_2_0 where T_2_0.dec1 = T_bigint_2_0.bigint1";
Command "select * from T_2_0 where dec1 = 1";
Command "select * from T_19_9, T_bigint_2_0 where T_19_9.dec1 <= T_bigint_2_0.bigint1";
Command "select * from T_19_9 where dec1 <= null";
Command "select * from T_19_9, T_bigint_2_0 where T_bigint_2_0.bigint1 >= T_19_9.dec1";
Command "select * from T_19_9 where 1 >= dec1";
Command "select * from T_36_36, T_bigint_19_0 where T_bigint_19_0.bigint1 > T_36_36.dec1";
Command "select * from T_36_36 where 2109876543210987654 > dec1";
Command "select * from T_36_36, T_bigint_2_0 where T_36_36.dec1 < T_bigint_2_0.bigint1";
Command "select * from T_36_36 where dec1 < -65";
Command "select * from T_2_1, T_bigint_19_0 where T_2_1.dec1 = T_bigint_19_0.bigint1";
Command "select * from T_2_1 where dec1 = 2109876543210987654";
Command "select * from T_2_1, T_bigint_2_0 where T_bigint_2_0.bigint1 != T_2_1.dec1";
Command "select * from T_2_1 where -65 != dec1";
Command "select * from T_19_0, T_bigint_2_0 where T_bigint_2_0.bigint1 <= T_19_0.dec1";
Command "select * from T_19_0 where 0 <= dec1";
Command "select * from T_19_0, T_bigint_19_0 where T_19_0.dec1 >= T_bigint_19_0.bigint1";
Command "select * from T_19_0 where dec1 >= -1";
Command "select * from T_19_0, T_bigint_2_0 where T_19_0.dec1 = T_bigint_2_0.bigint1";
Command "select * from T_19_0 where dec1 = 0";
Command "select * from T_19_0, T_bigint_19_0 where T_bigint_19_0.bigint1 != T_19_0.dec1";
Command "select * from T_19_0 where -1 != dec1";
Command "select * from T_36_36, T_bigint_2_0 where T_36_36.dec1 >= T_bigint_2_0.bigint1";
Command "select * from T_36_36 where dec1 >= -21";
Command "select * from T_36_36, T_bigint_19_0 where T_bigint_19_0.bigint1 <= T_36_36.dec1";
Command "select * from T_36_36 where 6543210987654321098 <= dec1";
Command "select * from T_36_18, T_bigint_2_0 where T_bigint_2_0.bigint1 = T_36_18.dec1";
Command "select * from T_36_18 where -21 = dec1";
Command "select * from T_36_18, T_bigint_19_0 where T_36_18.dec1 != T_bigint_19_0.bigint1";
Command "select * from T_36_18 where dec1 != 6543210987654321098";
Command "select * from T_19_19, T_bigint_2_0 where T_19_19.dec1 > T_bigint_2_0.bigint1";
Command "select * from T_19_19 where dec1 > null";
Command "select * from T_19_19, T_bigint_2_0 where T_bigint_2_0.bigint1 < T_19_19.dec1";
Command "select * from T_19_19 where 1 < dec1";
Command "select * from T_36_0, T_bigint_2_0 where T_bigint_2_0.bigint1 < T_36_0.dec1";
Command "select * from T_36_0 where null < dec1";
Command "select * from T_36_0, T_bigint_2_0 where T_36_0.dec1 > T_bigint_2_0.bigint1";
Command "select * from T_36_0 where dec1 > 1";
Command "select * from T_2_1, T_bigint_19_0 where T_bigint_19_0.bigint1 >= T_2_1.dec1";
Command "select * from T_2_1 where 2109876543210987654 >= dec1";
Command "select * from T_2_1, T_bigint_2_0 where T_2_1.dec1 <= T_bigint_2_0.bigint1";
Command "select * from T_2_1 where dec1 <= -65";
Command "select * from T_2_0, T_bigint_19_0 where T_2_0.dec1 != T_bigint_19_0.bigint1";
Command "select * from T_2_0 where dec1 != 2109876543210987654";
Command "select * from T_2_0, T_bigint_2_0 where T_bigint_2_0.bigint1 = T_2_0.dec1";
Command "select * from T_2_0 where -65 = dec1";
Command "select * from T_2_0, T_bigint_2_0 where T_bigint_2_0.bigint1 > T_2_0.dec1";
Command "select * from T_2_0 where -21 > dec1";
Command "select * from T_2_0, T_bigint_19_0 where T_2_0.dec1 < T_bigint_19_0.bigint1";
Command "select * from T_2_0 where dec1 < 6543210987654321098";
Command "select * from T_19_9, T_bigint_2_0 where T_19_9.dec1 != T_bigint_2_0.bigint1";
Command "select * from T_19_9 where dec1 != 0";
Command "select * from T_19_9, T_bigint_19_0 where T_bigint_19_0.bigint1 = T_19_9.dec1";
Command "select * from T_19_9 where -1 = dec1";
Command "select * from T_36_36, T_bigint_2_0 where T_36_36.dec1 >= T_bigint_2_0.bigint1";
Command "select * from T_36_36 where dec1 >= null";
Command "select * from T_36_36, T_bigint_2_0 where T_bigint_2_0.bigint1 <= T_36_36.dec1";
Command "select * from T_36_36 where 1 <= dec1";
Command "select * from T_2_1, T_bigint_2_0 where T_bigint_2_0.bigint1 < T_2_1.dec1";
Command "select * from T_2_1 where 0 < dec1";
Command "select * from T_2_1, T_bigint_19_0 where T_2_1.dec1 > T_bigint_19_0.bigint1";
Command "select * from T_2_1 where dec1 > -1";
Command "select * from T_19_0, T_bigint_2_0 where T_bigint_2_0.bigint1 > T_19_0.dec1";
Command "select * from T_19_0 where null > dec1";
Command "select * from T_19_0, T_bigint_2_0 where T_19_0.dec1 < T_bigint_2_0.bigint1";
Command "select * from T_19_0 where dec1 < 1";
Command "select * from T_19_0, T_bigint_2_0 where T_19_0.dec1 <= T_bigint_2_0.bigint1";
Command "select * from T_19_0 where dec1 <= -21";
Command "select * from T_19_0, T_bigint_19_0 where T_bigint_19_0.bigint1 >= T_19_0.dec1";
Command "select * from T_19_0 where 6543210987654321098 >= dec1";
Command "select * from T_36_36, T_bigint_19_0 where T_36_36.dec1 = T_bigint_19_0.bigint1";
Command "select * from T_36_36 where dec1 = 2109876543210987654";
Command "select * from T_36_36, T_bigint_2_0 where T_bigint_2_0.bigint1 != T_36_36.dec1";
Command "select * from T_36_36 where -65 != dec1";
Command "select * from T_36_18, T_bigint_2_0 where T_36_18.dec1 >= T_bigint_2_0.bigint1";
Command "select * from T_36_18 where dec1 >= 0";
Command "select * from T_36_18, T_bigint_19_0 where T_bigint_19_0.bigint1 <= T_36_18.dec1";
Command "select * from T_36_18 where -1 <= dec1";
Command "select * from T_19_19, T_bigint_2_0 where T_bigint_2_0.bigint1 = T_19_19.dec1";
Command "select * from T_19_19 where 0 = dec1";
Command "select * from T_19_19, T_bigint_19_0 where T_19_19.dec1 != T_bigint_19_0.bigint1";
Command "select * from T_19_19 where dec1 != -1";
Command "select * from T_36_0, T_bigint_19_0 where T_bigint_19_0.bigint1 != T_36_0.dec1";
Command "select * from T_36_0 where 2109876543210987654 != dec1";
Command "select * from T_36_0, T_bigint_2_0 where T_36_0.dec1 = T_bigint_2_0.bigint1";
Command "select * from T_36_0 where dec1 = -65";
Command "select * from T_2_1, T_bigint_2_0 where T_2_1.dec1 < T_bigint_2_0.bigint1";
Command "select * from T_2_1 where dec1 < null";
Command "select * from T_2_1, T_bigint_2_0 where T_bigint_2_0.bigint1 > T_2_1.dec1";
Command "select * from T_2_1 where 1 > dec1";
Command "select * from T_2_0, T_bigint_2_0 where T_bigint_2_0.bigint1 <= T_2_0.dec1";
Command "select * from T_2_0 where null <= dec1";
Command "select * from T_2_0, T_bigint_2_0 where T_2_0.dec1 >= T_bigint_2_0.bigint1";
Command "select * from T_2_0 where dec1 >= 1";
Command "select * from T_2_0, T_bigint_19_0 where T_2_0.dec1 <= T_bigint_19_0.bigint1";
Command "select * from T_2_0 where dec1 <= 2109876543210987654";
Command "select * from T_2_0, T_bigint_2_0 where T_bigint_2_0.bigint1 >= T_2_0.dec1";
Command "select * from T_2_0 where -65 >= dec1";
Command "select * from T_36_36, T_bigint_2_0 where T_36_36.dec1 != T_bigint_2_0.bigint1";
Command "select * from T_36_36 where dec1 != -21";
Command "select * from T_36_36, T_bigint_19_0 where T_bigint_19_0.bigint1 = T_36_36.dec1";
Command "select * from T_36_36 where 6543210987654321098 = dec1";
Command "select * from T_19_0, T_bigint_19_0 where T_bigint_19_0.bigint1 < T_19_0.dec1";
Command "select * from T_19_0 where 2109876543210987654 < dec1";
Command "select * from T_19_0, T_bigint_2_0 where T_19_0.dec1 > T_bigint_2_0.bigint1";
Command "select * from T_19_0 where dec1 > -65";
Command "select * from T_19_9, T_bigint_2_0 where T_bigint_2_0.bigint1 < T_19_9.dec1";
Command "select * from T_19_9 where -21 < dec1";
Command "select * from T_19_9, T_bigint_19_0 where T_19_9.dec1 > T_bigint_19_0.bigint1";
Command "select * from T_19_9 where dec1 > 6543210987654321098";
Command "select * from T_2_1, T_bigint_2_0 where T_bigint_2_0.bigint1 >= T_2_1.dec1";
Command "select * from T_2_1 where null >= dec1";
Command "select * from T_2_1, T_bigint_2_0 where T_2_1.dec1 <= T_bigint_2_0.bigint1";
Command "select * from T_2_1 where dec1 <= 1";
Command "select * from T_19_0, T_bigint_19_0 where T_bigint_19_0.bigint1 > T_19_0.dec1";
Command "select * from T_19_0 where 2109876543210987654 > dec1";
Command "select * from T_19_0, T_bigint_2_0 where T_19_0.dec1 < T_bigint_2_0.bigint1";
Command "select * from T_19_0 where dec1 < -65";
Command "select * from T_36_36, T_bigint_2_0 where T_bigint_2_0.bigint1 != T_36_36.dec1";
Command "select * from T_36_36 where 0 != dec1";
Command "select * from T_36_36, T_bigint_19_0 where T_36_36.dec1 = T_bigint_19_0.bigint1";
Command "select * from T_36_36 where dec1 = -1";
Command "select * from T_36_18, T_bigint_2_0 where T_36_18.dec1 = T_bigint_2_0.bigint1";
Command "select * from T_36_18 where dec1 = null";
Command "select * from T_36_18, T_bigint_2_0 where T_bigint_2_0.bigint1 != T_36_18.dec1";
Command "select * from T_36_18 where 1 != dec1";
Command "select * from T_19_19, T_bigint_2_0 where T_bigint_2_0.bigint1 > T_19_19.dec1";
Command "select * from T_19_19 where -21 > dec1";
Command "select * from T_19_19, T_bigint_19_0 where T_19_19.dec1 < T_bigint_19_0.bigint1";
Command "select * from T_19_19 where dec1 < 6543210987654321098";
Command "select * from T_36_0, T_bigint_2_0 where T_36_0.dec1 >= T_bigint_2_0.bigint1";
Command "select * from T_36_0 where dec1 >= -21";
Command "select * from T_36_0, T_bigint_19_0 where T_bigint_19_0.bigint1 <= T_36_0.dec1";
Command "select * from T_36_0 where 6543210987654321098 <= dec1";
Command "select * from T_2_1, T_bigint_2_0 where T_2_1.dec1 > T_bigint_2_0.bigint1";
Command "select * from T_2_1 where dec1 > 0";
Command "select * from T_2_1, T_bigint_19_0 where T_bigint_19_0.bigint1 < T_2_1.dec1";
Command "select * from T_2_1 where -1 < dec1";
Command "select * from T_2_0, T_bigint_2_0 where T_2_0.dec1 <= T_bigint_2_0.bigint1";
Command "select * from T_2_0 where dec1 <= 0";
Command "select * from T_2_0, T_bigint_19_0 where T_bigint_19_0.bigint1 >= T_2_0.dec1";
Command "select * from T_2_0 where -1 >= dec1";
Command "select * from T_19_9, T_bigint_19_0 where T_19_9.dec1 >= T_bigint_19_0.bigint1";
Command "select * from T_19_9 where dec1 >= 2109876543210987654";
Command "select * from T_19_9, T_bigint_2_0 where T_bigint_2_0.bigint1 <= T_19_9.dec1";
Command "select * from T_19_9 where -65 <= dec1";
Command "drop table T_36_36";
Command "drop table T_bigint_2_0";
Command "drop table T_19_19";
Command "drop table T_19_9";
Command "drop table T_bigint_19_0";
Command "drop table T_2_1";
Command "drop table T_36_0";
Command "drop table T_2_0";
Command "drop table T_19_0";
Command "drop table T_36_18";
TerminateSession;
InitializeSession "TESTDB";
Command "drop database TESTDB";
TerminateSession;
Terminate;
End;
