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 index I_T_2_0_dec1 on T_2_0(dec1)";
Command "create table T_18_9 (dec1 decimal(18,9))";
Command "insert T_18_9 values (null), (0), (1), (-1), (210987654.321098765), (-210987654.321098765), (654321098.765432109), (-654321098.765432109)";
Command "create index I_T_18_9_dec1 on T_18_9(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 "create index I_T_36_36_dec1 on T_36_36(dec1)";
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 "create index I_T_2_1_dec1 on T_2_1(dec1)";
Command "create table T_18_0 (dec1 decimal(18,0))";
Command "insert T_18_0 values (null), (0), (1), (-1), (210987654321098765), (-210987654321098765), (654321098765432109), (-654321098765432109)";
Command "create index I_T_18_0_dec1 on T_18_0(dec1)";
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 "create index I_T_36_18_dec1 on T_36_18(dec1)";
Command "create table T_18_18 (dec1 decimal(18,18))";
Command "insert T_18_18 values (null), (0), (0.210987654321098765), (-0.210987654321098765), (0.654321098765432109), (-0.654321098765432109)";
Command "create index I_T_18_18_dec1 on T_18_18(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 "create index I_T_36_0_dec1 on T_36_0(dec1)";
Command "select * from T_18_9 where dec1 > '21'";
Command "select * from T_18_9 where dec1 < '-654321098.765432109'";
Command "select * from T_18_9 where dec1 >= '                  0.654321098765432109876543210987654321'";
Command "select * from T_18_9 where dec1 <= '-000000000000000000000000000000000000654321098765432109876543210987654321098765432109876543210987654321098765'";
Command "select * from T_18_9 where dec1 != '-0.65'";
Command "select * from T_18_9 where dec1 = '210987654.321098765'";
Command "select * from T_18_9 where dec1 >= ' 65'";
Command "select * from T_18_9 where dec1 <= '-0000000000.654321098765432109'";
Command "select * from T_18_9 where dec1 > '-2.1'";
Command "select * from T_18_9 where dec1 < '654321098765432109'";
Command "select * from T_18_9 where dec1 != '-0.210987654321098765432109876543210987'";
Command "select * from T_18_9 where dec1 = '0.210987654321098765432109876543210987654321098765432109876543210987654321'";
Command "select * from T_18_9 where dec1 > '000000000000000000654321098765432109.876543210987654321'";
Command "select * from T_18_9 where dec1 < '                                    -654321098765432109876543210987654321.098765432109876543210987654321098765'";
Command "select * from T_18_9 where dec1 >= '-210987654321098765432109876543210987'";
Command "select * from T_18_9 where dec1 <= '0.654321098765432109876543210987654321098765432109876543210987654321098765'";
Command "select * from T_18_9 where dec1 != '06.5'";
Command "select * from T_18_9 where dec1 = '         -654321098765432109'";
Command "select * from T_18_9 where dec1 >= '654321098765432109876543210987654321'";
Command "select * from T_36_18 where dec1 != '                  0.654321098765432109876543210987654321'";
Command "select * from T_36_18 where dec1 = '-000000000000000000000000000000000000654321098765432109876543210987654321098765432109876543210987654321098765'";
Command "select * from T_36_18 where dec1 > '000000000000000000654321098765432109.876543210987654321'";
Command "select * from T_36_18 where dec1 < '                                    -654321098765432109876543210987654321.098765432109876543210987654321098765'";
Command "select * from T_36_18 where dec1 >= '-210987654321098765432109876543210987'";
Command "select * from T_36_18 where dec1 <= '0.654321098765432109876543210987654321098765432109876543210987654321098765'";
Command "select * from T_36_18 where dec1 > '06.5'";
Command "select * from T_36_18 where dec1 < '         -654321098765432109'";
Command "select * from T_36_18 where dec1 >= '654321098765432109876543210987654321'";
Command "select * from T_36_18 where dec1 <= '21'";
Command "select * from T_36_18 where dec1 != '-654321098.765432109'";
Command "select * from T_36_18 where dec1 = '-0.65'";
Command "select * from T_36_18 where dec1 > '210987654.321098765'";
Command "select * from T_36_18 where dec1 != ' 65'";
Command "select * from T_36_18 where dec1 = '-0000000000.654321098765432109'";
Command "select * from T_36_18 where dec1 < '-2.1'";
Command "select * from T_36_18 where dec1 >= '654321098765432109'";
Command "select * from T_36_18 where dec1 <= '-0.210987654321098765432109876543210987'";
Command "select * from T_36_18 where dec1 != '0.210987654321098765432109876543210987654321098765432109876543210987654321'";
Command "select * from T_36_36 where dec1 <= '21'";
Command "select * from T_36_36 where dec1 >= '-654321098.765432109'";
Command "select * from T_36_36 where dec1 < '                  0.654321098765432109876543210987654321'";
Command "select * from T_36_36 where dec1 = '                  0.654321098765432109876543210987654321'";
Command "select * from T_36_36 where dec1 > '-000000000000000000000000000000000000654321098765432109876543210987654321098765432109876543210987654321098765'";
Command "select * from T_36_36 where dec1 != '-000000000000000000000000000000000000654321098765432109876543210987654321098765432109876543210987654321098765'";
Command "select * from T_36_36 where dec1 < '-0.65'";
Command "select * from T_36_36 where dec1 > '210987654.321098765'";
Command "select * from T_36_36 where dec1 = '000000000000000000654321098765432109.876543210987654321'";
Command "select * from T_36_36 where dec1 < '000000000000000000654321098765432109.876543210987654321'";
Command "select * from T_36_36 where dec1 != '                                    -654321098765432109876543210987654321.098765432109876543210987654321098765'";
Command "select * from T_36_36 where dec1 > '                                    -654321098765432109876543210987654321.098765432109876543210987654321098765'";
Command "select * from T_36_36 where dec1 <= '-210987654321098765432109876543210987'";
Command "select * from T_36_36 where dec1 >= '0.654321098765432109876543210987654321098765432109876543210987654321098765'";
Command "select * from T_36_36 where dec1 = '-2.1'";
Command "select * from T_36_36 where dec1 != '654321098765432109'";
Command "select * from T_36_36 where dec1 <= '-0.210987654321098765432109876543210987'";
Command "select * from T_36_36 where dec1 >= '0.210987654321098765432109876543210987654321098765432109876543210987654321'";
Command "select * from T_36_36 where dec1 < '06.5'";
Command "select * from T_36_36 where dec1 > '         -654321098765432109'";
Command "select * from T_36_36 where dec1 <= '654321098765432109876543210987654321'";
Command "select * from T_36_36 where dec1 >= '21'";
Command "select * from T_36_36 where dec1 = '-654321098.765432109'";
Command "select * from T_36_36 where dec1 != '-0.65'";
Command "select * from T_36_36 where dec1 < '210987654.321098765'";
Command "select * from T_36_36 where dec1 < '-210987654321098765432109876543210987'";
Command "select * from T_36_36 where dec1 > '0.654321098765432109876543210987654321098765432109876543210987654321098765'";
Command "select * from T_36_36 where dec1 <= ' 65'";
Command "select * from T_36_36 where dec1 = ' 65'";
Command "select * from T_36_36 where dec1 >= '-0000000000.654321098765432109'";
Command "select * from T_36_36 where dec1 != '-0000000000.654321098765432109'";
Command "select * from T_36_36 where dec1 > '-2.1'";
Command "select * from T_36_36 where dec1 <= '654321098765432109'";
Command "select * from T_36_36 where dec1 >= '-0.210987654321098765432109876543210987'";
Command "select * from T_36_36 where dec1 = '0.210987654321098765432109876543210987654321098765432109876543210987654321'";
Command "select * from T_36_36 where dec1 < '06.5'";
Command "select * from T_36_36 where dec1 > '         -654321098765432109'";
Command "select * from T_36_36 where dec1 = '654321098765432109876543210987654321'";
Command "select * from T_36_0 where dec1 >= '000000000000000000654321098765432109.876543210987654321'";
Command "select * from T_36_0 where dec1 <= '                                    -654321098765432109876543210987654321.098765432109876543210987654321098765'";
Command "select * from T_36_0 where dec1 > '-210987654321098765432109876543210987'";
Command "select * from T_36_0 where dec1 < '0.654321098765432109876543210987654321098765432109876543210987654321098765'";
Command "select * from T_36_0 where dec1 != ' 65'";
Command "select * from T_36_0 where dec1 = '-0000000000.654321098765432109'";
Command "select * from T_36_0 where dec1 != '06.5'";
Command "select * from T_36_0 where dec1 = '         -654321098765432109'";
Command "select * from T_36_0 where dec1 > '654321098765432109876543210987654321'";
Command "select * from T_36_0 where dec1 < '21'";
Command "select * from T_36_0 where dec1 >= '-654321098.765432109'";
Command "select * from T_36_0 where dec1 <= '                  0.654321098765432109876543210987654321'";
Command "select * from T_36_0 where dec1 != '-000000000000000000000000000000000000654321098765432109876543210987654321098765432109876543210987654321098765'";
Command "select * from T_36_0 where dec1 >= '-0.65'";
Command "select * from T_36_0 where dec1 = '210987654.321098765'";
Command "select * from T_36_0 where dec1 != '-2.1'";
Command "select * from T_36_0 where dec1 > '654321098765432109'";
Command "select * from T_36_0 where dec1 < '-0.210987654321098765432109876543210987'";
Command "select * from T_36_0 where dec1 <= '0.210987654321098765432109876543210987654321098765432109876543210987654321'";
Command "select * from T_18_18 where dec1 <= '000000000000000000654321098765432109.876543210987654321'";
Command "select * from T_18_18 where dec1 >= '                                    -654321098765432109876543210987654321.098765432109876543210987654321098765'";
Command "select * from T_18_18 where dec1 < '-210987654321098765432109876543210987'";
Command "select * from T_18_18 where dec1 > '0.654321098765432109876543210987654321098765432109876543210987654321098765'";
Command "select * from T_18_18 where dec1 = ' 65'";
Command "select * from T_18_18 where dec1 != '-0000000000.654321098765432109'";
Command "select * from T_18_18 where dec1 = '06.5'";
Command "select * from T_18_18 where dec1 != '         -654321098765432109'";
Command "select * from T_18_18 where dec1 < '654321098765432109876543210987654321'";
Command "select * from T_18_18 where dec1 > '21'";
Command "select * from T_18_18 where dec1 <= '-654321098.765432109'";
Command "select * from T_18_18 where dec1 >= '                  0.654321098765432109876543210987654321'";
Command "select * from T_18_18 where dec1 = '-000000000000000000000000000000000000654321098765432109876543210987654321098765432109876543210987654321098765'";
Command "select * from T_18_18 where dec1 <= '-0.65'";
Command "select * from T_18_18 where dec1 != '210987654.321098765'";
Command "select * from T_18_18 where dec1 = '-2.1'";
Command "select * from T_18_18 where dec1 < '654321098765432109'";
Command "select * from T_18_18 where dec1 > '-0.210987654321098765432109876543210987'";
Command "select * from T_18_18 where dec1 >= '0.210987654321098765432109876543210987654321098765432109876543210987654321'";
Command "select * from T_18_0 where dec1 = '21'";
Command "select * from T_18_0 where dec1 != '21'";
Command "select * from T_18_0 where dec1 != '-654321098.765432109'";
Command "select * from T_18_0 where dec1 = '-654321098.765432109'";
Command "select * from T_18_0 where dec1 < '                  0.654321098765432109876543210987654321'";
Command "select * from T_18_0 where dec1 > '                  0.654321098765432109876543210987654321'";
Command "select * from T_18_0 where dec1 > '-000000000000000000000000000000000000654321098765432109876543210987654321098765432109876543210987654321098765'";
Command "select * from T_18_0 where dec1 < '-000000000000000000000000000000000000654321098765432109876543210987654321098765432109876543210987654321098765'";
Command "select * from T_18_0 where dec1 <= '-0.65'";
Command "select * from T_18_0 where dec1 >= '-0.65'";
Command "select * from T_18_0 where dec1 >= '210987654.321098765'";
Command "select * from T_18_0 where dec1 <= '210987654.321098765'";
Command "select * from T_18_0 where dec1 < '-0.210987654321098765432109876543210987'";
Command "select * from T_18_0 where dec1 > '-0.210987654321098765432109876543210987'";
Command "select * from T_18_0 where dec1 > '0.210987654321098765432109876543210987654321098765432109876543210987654321'";
Command "select * from T_18_0 where dec1 < '0.210987654321098765432109876543210987654321098765432109876543210987654321'";
Command "select * from T_18_0 where dec1 <= '06.5'";
Command "select * from T_18_0 where dec1 >= '06.5'";
Command "select * from T_18_0 where dec1 >= '         -654321098765432109'";
Command "select * from T_18_0 where dec1 <= '         -654321098765432109'";
Command "select * from T_18_0 where dec1 = '654321098765432109876543210987654321'";
Command "select * from T_18_0 where dec1 != '654321098765432109876543210987654321'";
Command "select * from T_18_0 where dec1 != '000000000000000000654321098765432109.876543210987654321'";
Command "select * from T_18_0 where dec1 = '000000000000000000654321098765432109.876543210987654321'";
Command "select * from T_18_0 where dec1 <= '                                    -654321098765432109876543210987654321.098765432109876543210987654321098765'";
Command "select * from T_18_0 where dec1 >= '                                    -654321098765432109876543210987654321.098765432109876543210987654321098765'";
Command "select * from T_18_0 where dec1 = '-210987654321098765432109876543210987'";
Command "select * from T_18_0 where dec1 != '-210987654321098765432109876543210987'";
Command "select * from T_18_0 where dec1 != '0.654321098765432109876543210987654321098765432109876543210987654321098765'";
Command "select * from T_18_0 where dec1 = '0.654321098765432109876543210987654321098765432109876543210987654321098765'";
Command "select * from T_18_0 where dec1 < ' 65'";
Command "select * from T_18_0 where dec1 > ' 65'";
Command "select * from T_18_0 where dec1 > '-0000000000.654321098765432109'";
Command "select * from T_18_0 where dec1 < '-0000000000.654321098765432109'";
Command "select * from T_18_0 where dec1 >= '-2.1'";
Command "select * from T_18_0 where dec1 <= '-2.1'";
Command "select * from T_18_0 where dec1 = '654321098765432109'";
Command "select * from T_18_0 where dec1 != '654321098765432109'";
Command "select * from T_2_1 where dec1 >= '21'";
Command "select * from T_2_1 where dec1 <= '-654321098.765432109'";
Command "select * from T_2_1 where dec1 > '                  0.654321098765432109876543210987654321'";
Command "select * from T_2_1 where dec1 < '-000000000000000000000000000000000000654321098765432109876543210987654321098765432109876543210987654321098765'";
Command "select * from T_2_1 where dec1 > '-0.65'";
Command "select * from T_2_1 where dec1 < '210987654.321098765'";
Command "select * from T_2_1 where dec1 != '000000000000000000654321098765432109.876543210987654321'";
Command "select * from T_2_1 where dec1 = '                                    -654321098765432109876543210987654321.098765432109876543210987654321098765'";
Command "select * from T_2_1 where dec1 = '-210987654321098765432109876543210987'";
Command "select * from T_2_1 where dec1 != '0.654321098765432109876543210987654321098765432109876543210987654321098765'";
Command "select * from T_2_1 where dec1 < ' 65'";
Command "select * from T_2_1 where dec1 > '-0000000000.654321098765432109'";
Command "select * from T_2_1 where dec1 <= '-2.1'";
Command "select * from T_2_1 where dec1 != '-2.1'";
Command "select * from T_2_1 where dec1 >= '654321098765432109'";
Command "select * from T_2_1 where dec1 = '654321098765432109'";
Command "select * from T_2_1 where dec1 >= '-0.210987654321098765432109876543210987'";
Command "select * from T_2_1 where dec1 <= '0.210987654321098765432109876543210987654321098765432109876543210987654321'";
Command "select * from T_2_1 where dec1 = '21'";
Command "select * from T_2_1 where dec1 < '-654321098.765432109'";
Command "select * from T_2_1 where dec1 != '                  0.654321098765432109876543210987654321'";
Command "select * from T_2_1 where dec1 <= '-000000000000000000000000000000000000654321098765432109876543210987654321098765432109876543210987654321098765'";
Command "select * from T_2_1 where dec1 > '-0.65'";
Command "select * from T_2_1 where dec1 >= '210987654.321098765'";
Command "select * from T_2_1 where dec1 <= '000000000000000000654321098765432109.876543210987654321'";
Command "select * from T_2_1 where dec1 = '                                    -654321098765432109876543210987654321.098765432109876543210987654321098765'";
Command "select * from T_2_1 where dec1 > '-210987654321098765432109876543210987'";
Command "select * from T_2_1 where dec1 < '0.654321098765432109876543210987654321098765432109876543210987654321098765'";
Command "select * from T_2_1 where dec1 >= ' 65'";
Command "select * from T_2_1 where dec1 <= '-0000000000.654321098765432109'";
Command "select * from T_2_1 where dec1 != '-0.210987654321098765432109876543210987'";
Command "select * from T_2_1 where dec1 < '0.210987654321098765432109876543210987654321098765432109876543210987654321'";
Command "select * from T_2_1 where dec1 > '06.5'";
Command "select * from T_2_1 where dec1 >= '06.5'";
Command "select * from T_2_1 where dec1 < '         -654321098765432109'";
Command "select * from T_2_1 where dec1 <= '         -654321098765432109'";
Command "select * from T_2_1 where dec1 != '654321098765432109876543210987654321'";
Command "select * from T_2_1 where dec1 > '654321098765432109876543210987654321'";
Command "select * from T_2_0 where dec1 < '21'";
Command "select * from T_2_0 where dec1 > '-654321098.765432109'";
Command "select * from T_2_0 where dec1 <= '                  0.654321098765432109876543210987654321'";
Command "select * from T_2_0 where dec1 >= '-000000000000000000000000000000000000654321098765432109876543210987654321098765432109876543210987654321098765'";
Command "select * from T_2_0 where dec1 = '-0.65'";
Command "select * from T_2_0 where dec1 != '210987654.321098765'";
Command "select * from T_2_0 where dec1 != '-210987654321098765432109876543210987'";
Command "select * from T_2_0 where dec1 = '0.654321098765432109876543210987654321098765432109876543210987654321098765'";
Command "select * from T_2_0 where dec1 > ' 65'";
Command "select * from T_2_0 where dec1 <= ' 65'";
Command "select * from T_2_0 where dec1 < '-0000000000.654321098765432109'";
Command "select * from T_2_0 where dec1 >= '-0000000000.654321098765432109'";
Command "select * from T_2_0 where dec1 >= '-2.1'";
Command "select * from T_2_0 where dec1 < '-2.1'";
Command "select * from T_2_0 where dec1 <= '654321098765432109'";
Command "select * from T_2_0 where dec1 > '654321098765432109'";
Command "select * from T_2_0 where dec1 = '-0.210987654321098765432109876543210987'";
Command "select * from T_2_0 where dec1 != '0.210987654321098765432109876543210987654321098765432109876543210987654321'";
Command "select * from T_2_0 where dec1 != '21'";
Command "select * from T_2_0 where dec1 > '-654321098.765432109'";
Command "select * from T_2_0 where dec1 = '                  0.654321098765432109876543210987654321'";
Command "select * from T_2_0 where dec1 >= '-000000000000000000000000000000000000654321098765432109876543210987654321098765432109876543210987654321098765'";
Command "select * from T_2_0 where dec1 < '-0.65'";
Command "select * from T_2_0 where dec1 <= '210987654.321098765'";
Command "select * from T_2_0 where dec1 < '000000000000000000654321098765432109.876543210987654321'";
Command "select * from T_2_0 where dec1 >= '000000000000000000654321098765432109.876543210987654321'";
Command "select * from T_2_0 where dec1 > '                                    -654321098765432109876543210987654321.098765432109876543210987654321098765'";
Command "select * from T_2_0 where dec1 != '                                    -654321098765432109876543210987654321.098765432109876543210987654321098765'";
Command "select * from T_2_0 where dec1 <= '-210987654321098765432109876543210987'";
Command "select * from T_2_0 where dec1 >= '0.654321098765432109876543210987654321098765432109876543210987654321098765'";
Command "select * from T_2_0 where dec1 = '-0.210987654321098765432109876543210987'";
Command "select * from T_2_0 where dec1 > '0.210987654321098765432109876543210987654321098765432109876543210987654321'";
Command "select * from T_2_0 where dec1 = '06.5'";
Command "select * from T_2_0 where dec1 <= '06.5'";
Command "select * from T_2_0 where dec1 != '         -654321098765432109'";
Command "select * from T_2_0 where dec1 >= '         -654321098765432109'";
Command "select * from T_2_0 where dec1 < '654321098765432109876543210987654321'";
Command "select * from T_2_0 where dec1 <= '654321098765432109876543210987654321'";
Command "drop table T_18_18";
Command "drop table T_18_0";
Command "drop table T_2_1";
Command "drop table T_36_36";
Command "drop table T_36_0";
Command "drop table T_2_0";
Command "drop table T_36_18";
Command "drop table T_18_9";
TerminateSession;
InitializeSession "TESTDB";
Command "drop database TESTDB";
TerminateSession;
Terminate;
End;
