Begin;
Initialize;
InitializeSession "TESTDB";
Command "create database TESTDB";
TerminateSession;
InitializeSession "TESTDB";
Command "create table T_1 (col1 decimal(2,0), col2 bigint)";
Command "insert T_1(col2) values (0)";
Command "update T_1 set col1 = col2";
Command "select * from T_1";
Command "update T_1 set col1 = null";
Command "update T_1 set col1 = 0";
Command "select * from T_1";
Command "drop table T_1";
Command "create table T_2 (col1 decimal(2,0), col2 bigint)";
Command "insert T_2(col2) values (-1)";
Command "update T_2 set col1 = col2";
Command "select * from T_2";
Command "update T_2 set col1 = null";
Command "update T_2 set col1 = -1";
Command "select * from T_2";
Command "drop table T_2";
Command "create table T_3 (col1 decimal(2,0), col2 bigint)";
Command "insert T_3(col2) values (-21)";
Command "update T_3 set col1 = col2";
Command "select * from T_3";
Command "update T_3 set col1 = null";
Command "update T_3 set col1 = -21";
Command "select * from T_3";
Command "drop table T_3";
Command "create table T_4 (col1 decimal(2,0), col2 bigint)";
Command "insert T_4(col2) values (6543210987654321098)";
# error NumericValueOutOfRange is expected
Command "update T_4 set col1 = col2";
Command "select * from T_4";
Command "update T_4 set col1 = null";
# error NumericValueOutOfRange is expected
Command "update T_4 set col1 = 6543210987654321098";
Command "select * from T_4";
Command "drop table T_4";
Command "create table T_5 (col1 decimal(2,0), col2 bigint)";
Command "insert T_5(col2) values (null)";
Command "update T_5 set col1 = col2";
Command "select * from T_5";
Command "update T_5 set col1 = null";
Command "update T_5 set col1 = null";
Command "select * from T_5";
Command "drop table T_5";
Command "create table T_6 (col1 decimal(2,0), col2 bigint)";
Command "insert T_6(col2) values (1)";
Command "update T_6 set col1 = col2";
Command "select * from T_6";
Command "update T_6 set col1 = null";
Command "update T_6 set col1 = 1";
Command "select * from T_6";
Command "drop table T_6";
Command "create table T_7 (col1 decimal(2,0), col2 bigint)";
Command "insert T_7(col2) values (2109876543210987654)";
# error NumericValueOutOfRange is expected
Command "update T_7 set col1 = col2";
Command "select * from T_7";
Command "update T_7 set col1 = null";
# error NumericValueOutOfRange is expected
Command "update T_7 set col1 = 2109876543210987654";
Command "select * from T_7";
Command "drop table T_7";
Command "create table T_8 (col1 decimal(2,0), col2 bigint)";
Command "insert T_8(col2) values (-65)";
Command "update T_8 set col1 = col2";
Command "select * from T_8";
Command "update T_8 set col1 = null";
Command "update T_8 set col1 = -65";
Command "select * from T_8";
Command "drop table T_8";
Command "create table T_9 (col1 decimal(19,9), col2 bigint)";
Command "insert T_9(col2) values (0)";
Command "update T_9 set col1 = col2";
Command "select * from T_9";
Command "update T_9 set col1 = null";
Command "update T_9 set col1 = 0";
Command "select * from T_9";
Command "drop table T_9";
Command "create table T_10 (col1 decimal(19,9), col2 bigint)";
Command "insert T_10(col2) values (-1)";
Command "update T_10 set col1 = col2";
Command "select * from T_10";
Command "update T_10 set col1 = null";
Command "update T_10 set col1 = -1";
Command "select * from T_10";
Command "drop table T_10";
Command "create table T_11 (col1 decimal(19,9), col2 bigint)";
Command "insert T_11(col2) values (-21)";
Command "update T_11 set col1 = col2";
Command "select * from T_11";
Command "update T_11 set col1 = null";
Command "update T_11 set col1 = -21";
Command "select * from T_11";
Command "drop table T_11";
Command "create table T_12 (col1 decimal(19,9), col2 bigint)";
Command "insert T_12(col2) values (6543210987654321098)";
# error NumericValueOutOfRange is expected
Command "update T_12 set col1 = col2";
Command "select * from T_12";
Command "update T_12 set col1 = null";
# error NumericValueOutOfRange is expected
Command "update T_12 set col1 = 6543210987654321098";
Command "select * from T_12";
Command "drop table T_12";
Command "create table T_13 (col1 decimal(19,9), col2 bigint)";
Command "insert T_13(col2) values (null)";
Command "update T_13 set col1 = col2";
Command "select * from T_13";
Command "update T_13 set col1 = null";
Command "update T_13 set col1 = null";
Command "select * from T_13";
Command "drop table T_13";
Command "create table T_14 (col1 decimal(19,9), col2 bigint)";
Command "insert T_14(col2) values (1)";
Command "update T_14 set col1 = col2";
Command "select * from T_14";
Command "update T_14 set col1 = null";
Command "update T_14 set col1 = 1";
Command "select * from T_14";
Command "drop table T_14";
Command "create table T_15 (col1 decimal(19,9), col2 bigint)";
Command "insert T_15(col2) values (2109876543210987654)";
# error NumericValueOutOfRange is expected
Command "update T_15 set col1 = col2";
Command "select * from T_15";
Command "update T_15 set col1 = null";
# error NumericValueOutOfRange is expected
Command "update T_15 set col1 = 2109876543210987654";
Command "select * from T_15";
Command "drop table T_15";
Command "create table T_16 (col1 decimal(19,9), col2 bigint)";
Command "insert T_16(col2) values (-65)";
Command "update T_16 set col1 = col2";
Command "select * from T_16";
Command "update T_16 set col1 = null";
Command "update T_16 set col1 = -65";
Command "select * from T_16";
Command "drop table T_16";
Command "create table T_17 (col1 decimal(36,36), col2 bigint)";
Command "insert T_17(col2) values (0)";
Command "update T_17 set col1 = col2";
Command "select * from T_17";
Command "update T_17 set col1 = null";
Command "update T_17 set col1 = 0";
Command "select * from T_17";
Command "drop table T_17";
Command "create table T_18 (col1 decimal(36,36), col2 bigint)";
Command "insert T_18(col2) values (-1)";
# error NumericValueOutOfRange is expected
Command "update T_18 set col1 = col2";
Command "select * from T_18";
Command "update T_18 set col1 = null";
# error NumericValueOutOfRange is expected
Command "update T_18 set col1 = -1";
Command "select * from T_18";
Command "drop table T_18";
Command "create table T_19 (col1 decimal(36,36), col2 bigint)";
Command "insert T_19(col2) values (-21)";
# error NumericValueOutOfRange is expected
Command "update T_19 set col1 = col2";
Command "select * from T_19";
Command "update T_19 set col1 = null";
# error NumericValueOutOfRange is expected
Command "update T_19 set col1 = -21";
Command "select * from T_19";
Command "drop table T_19";
Command "create table T_20 (col1 decimal(36,36), col2 bigint)";
Command "insert T_20(col2) values (6543210987654321098)";
# error NumericValueOutOfRange is expected
Command "update T_20 set col1 = col2";
Command "select * from T_20";
Command "update T_20 set col1 = null";
# error NumericValueOutOfRange is expected
Command "update T_20 set col1 = 6543210987654321098";
Command "select * from T_20";
Command "drop table T_20";
Command "create table T_21 (col1 decimal(36,36), col2 bigint)";
Command "insert T_21(col2) values (null)";
Command "update T_21 set col1 = col2";
Command "select * from T_21";
Command "update T_21 set col1 = null";
Command "update T_21 set col1 = null";
Command "select * from T_21";
Command "drop table T_21";
Command "create table T_22 (col1 decimal(36,36), col2 bigint)";
Command "insert T_22(col2) values (1)";
# error NumericValueOutOfRange is expected
Command "update T_22 set col1 = col2";
Command "select * from T_22";
Command "update T_22 set col1 = null";
# error NumericValueOutOfRange is expected
Command "update T_22 set col1 = 1";
Command "select * from T_22";
Command "drop table T_22";
Command "create table T_23 (col1 decimal(36,36), col2 bigint)";
Command "insert T_23(col2) values (2109876543210987654)";
# error NumericValueOutOfRange is expected
Command "update T_23 set col1 = col2";
Command "select * from T_23";
Command "update T_23 set col1 = null";
# error NumericValueOutOfRange is expected
Command "update T_23 set col1 = 2109876543210987654";
Command "select * from T_23";
Command "drop table T_23";
Command "create table T_24 (col1 decimal(36,36), col2 bigint)";
Command "insert T_24(col2) values (-65)";
# error NumericValueOutOfRange is expected
Command "update T_24 set col1 = col2";
Command "select * from T_24";
Command "update T_24 set col1 = null";
# error NumericValueOutOfRange is expected
Command "update T_24 set col1 = -65";
Command "select * from T_24";
Command "drop table T_24";
Command "create table T_25 (col1 decimal(2,1), col2 bigint)";
Command "insert T_25(col2) values (0)";
Command "update T_25 set col1 = col2";
Command "select * from T_25";
Command "update T_25 set col1 = null";
Command "update T_25 set col1 = 0";
Command "select * from T_25";
Command "drop table T_25";
Command "create table T_26 (col1 decimal(2,1), col2 bigint)";
Command "insert T_26(col2) values (-1)";
Command "update T_26 set col1 = col2";
Command "select * from T_26";
Command "update T_26 set col1 = null";
Command "update T_26 set col1 = -1";
Command "select * from T_26";
Command "drop table T_26";
Command "create table T_27 (col1 decimal(2,1), col2 bigint)";
Command "insert T_27(col2) values (-21)";
# error NumericValueOutOfRange is expected
Command "update T_27 set col1 = col2";
Command "select * from T_27";
Command "update T_27 set col1 = null";
# error NumericValueOutOfRange is expected
Command "update T_27 set col1 = -21";
Command "select * from T_27";
Command "drop table T_27";
Command "create table T_28 (col1 decimal(2,1), col2 bigint)";
Command "insert T_28(col2) values (6543210987654321098)";
# error NumericValueOutOfRange is expected
Command "update T_28 set col1 = col2";
Command "select * from T_28";
Command "update T_28 set col1 = null";
# error NumericValueOutOfRange is expected
Command "update T_28 set col1 = 6543210987654321098";
Command "select * from T_28";
Command "drop table T_28";
Command "create table T_29 (col1 decimal(2,1), col2 bigint)";
Command "insert T_29(col2) values (null)";
Command "update T_29 set col1 = col2";
Command "select * from T_29";
Command "update T_29 set col1 = null";
Command "update T_29 set col1 = null";
Command "select * from T_29";
Command "drop table T_29";
Command "create table T_30 (col1 decimal(2,1), col2 bigint)";
Command "insert T_30(col2) values (1)";
Command "update T_30 set col1 = col2";
Command "select * from T_30";
Command "update T_30 set col1 = null";
Command "update T_30 set col1 = 1";
Command "select * from T_30";
Command "drop table T_30";
Command "create table T_31 (col1 decimal(2,1), col2 bigint)";
Command "insert T_31(col2) values (2109876543210987654)";
# error NumericValueOutOfRange is expected
Command "update T_31 set col1 = col2";
Command "select * from T_31";
Command "update T_31 set col1 = null";
# error NumericValueOutOfRange is expected
Command "update T_31 set col1 = 2109876543210987654";
Command "select * from T_31";
Command "drop table T_31";
Command "create table T_32 (col1 decimal(2,1), col2 bigint)";
Command "insert T_32(col2) values (-65)";
# error NumericValueOutOfRange is expected
Command "update T_32 set col1 = col2";
Command "select * from T_32";
Command "update T_32 set col1 = null";
# error NumericValueOutOfRange is expected
Command "update T_32 set col1 = -65";
Command "select * from T_32";
Command "drop table T_32";
Command "create table T_33 (col1 decimal(19,0), col2 bigint)";
Command "insert T_33(col2) values (0)";
Command "update T_33 set col1 = col2";
Command "select * from T_33";
Command "update T_33 set col1 = null";
Command "update T_33 set col1 = 0";
Command "select * from T_33";
Command "drop table T_33";
Command "create table T_34 (col1 decimal(19,0), col2 bigint)";
Command "insert T_34(col2) values (-1)";
Command "update T_34 set col1 = col2";
Command "select * from T_34";
Command "update T_34 set col1 = null";
Command "update T_34 set col1 = -1";
Command "select * from T_34";
Command "drop table T_34";
Command "create table T_35 (col1 decimal(19,0), col2 bigint)";
Command "insert T_35(col2) values (-21)";
Command "update T_35 set col1 = col2";
Command "select * from T_35";
Command "update T_35 set col1 = null";
Command "update T_35 set col1 = -21";
Command "select * from T_35";
Command "drop table T_35";
Command "create table T_36 (col1 decimal(19,0), col2 bigint)";
Command "insert T_36(col2) values (6543210987654321098)";
Command "update T_36 set col1 = col2";
Command "select * from T_36";
Command "update T_36 set col1 = null";
Command "update T_36 set col1 = 6543210987654321098";
Command "select * from T_36";
Command "drop table T_36";
Command "create table T_37 (col1 decimal(19,0), col2 bigint)";
Command "insert T_37(col2) values (null)";
Command "update T_37 set col1 = col2";
Command "select * from T_37";
Command "update T_37 set col1 = null";
Command "update T_37 set col1 = null";
Command "select * from T_37";
Command "drop table T_37";
Command "create table T_38 (col1 decimal(19,0), col2 bigint)";
Command "insert T_38(col2) values (1)";
Command "update T_38 set col1 = col2";
Command "select * from T_38";
Command "update T_38 set col1 = null";
Command "update T_38 set col1 = 1";
Command "select * from T_38";
Command "drop table T_38";
Command "create table T_39 (col1 decimal(19,0), col2 bigint)";
Command "insert T_39(col2) values (2109876543210987654)";
Command "update T_39 set col1 = col2";
Command "select * from T_39";
Command "update T_39 set col1 = null";
Command "update T_39 set col1 = 2109876543210987654";
Command "select * from T_39";
Command "drop table T_39";
Command "create table T_40 (col1 decimal(19,0), col2 bigint)";
Command "insert T_40(col2) values (-65)";
Command "update T_40 set col1 = col2";
Command "select * from T_40";
Command "update T_40 set col1 = null";
Command "update T_40 set col1 = -65";
Command "select * from T_40";
Command "drop table T_40";
Command "create table T_41 (col1 decimal(36,0), col2 bigint)";
Command "insert T_41(col2) values (0)";
Command "update T_41 set col1 = col2";
Command "select * from T_41";
Command "update T_41 set col1 = null";
Command "update T_41 set col1 = 0";
Command "select * from T_41";
Command "drop table T_41";
Command "create table T_42 (col1 decimal(36,0), col2 bigint)";
Command "insert T_42(col2) values (-1)";
Command "update T_42 set col1 = col2";
Command "select * from T_42";
Command "update T_42 set col1 = null";
Command "update T_42 set col1 = -1";
Command "select * from T_42";
Command "drop table T_42";
Command "create table T_43 (col1 decimal(36,0), col2 bigint)";
Command "insert T_43(col2) values (-21)";
Command "update T_43 set col1 = col2";
Command "select * from T_43";
Command "update T_43 set col1 = null";
Command "update T_43 set col1 = -21";
Command "select * from T_43";
Command "drop table T_43";
Command "create table T_44 (col1 decimal(36,0), col2 bigint)";
Command "insert T_44(col2) values (6543210987654321098)";
Command "update T_44 set col1 = col2";
Command "select * from T_44";
Command "update T_44 set col1 = null";
Command "update T_44 set col1 = 6543210987654321098";
Command "select * from T_44";
Command "drop table T_44";
Command "create table T_45 (col1 decimal(36,0), col2 bigint)";
Command "insert T_45(col2) values (null)";
Command "update T_45 set col1 = col2";
Command "select * from T_45";
Command "update T_45 set col1 = null";
Command "update T_45 set col1 = null";
Command "select * from T_45";
Command "drop table T_45";
Command "create table T_46 (col1 decimal(36,0), col2 bigint)";
Command "insert T_46(col2) values (1)";
Command "update T_46 set col1 = col2";
Command "select * from T_46";
Command "update T_46 set col1 = null";
Command "update T_46 set col1 = 1";
Command "select * from T_46";
Command "drop table T_46";
Command "create table T_47 (col1 decimal(36,0), col2 bigint)";
Command "insert T_47(col2) values (2109876543210987654)";
Command "update T_47 set col1 = col2";
Command "select * from T_47";
Command "update T_47 set col1 = null";
Command "update T_47 set col1 = 2109876543210987654";
Command "select * from T_47";
Command "drop table T_47";
Command "create table T_48 (col1 decimal(36,0), col2 bigint)";
Command "insert T_48(col2) values (-65)";
Command "update T_48 set col1 = col2";
Command "select * from T_48";
Command "update T_48 set col1 = null";
Command "update T_48 set col1 = -65";
Command "select * from T_48";
Command "drop table T_48";
Command "create table T_49 (col1 decimal(2,2), col2 bigint)";
Command "insert T_49(col2) values (0)";
Command "update T_49 set col1 = col2";
Command "select * from T_49";
Command "update T_49 set col1 = null";
Command "update T_49 set col1 = 0";
Command "select * from T_49";
Command "drop table T_49";
Command "create table T_50 (col1 decimal(2,2), col2 bigint)";
Command "insert T_50(col2) values (-1)";
# error NumericValueOutOfRange is expected
Command "update T_50 set col1 = col2";
Command "select * from T_50";
Command "update T_50 set col1 = null";
# error NumericValueOutOfRange is expected
Command "update T_50 set col1 = -1";
Command "select * from T_50";
Command "drop table T_50";
Command "create table T_51 (col1 decimal(2,2), col2 bigint)";
Command "insert T_51(col2) values (-21)";
# error NumericValueOutOfRange is expected
Command "update T_51 set col1 = col2";
Command "select * from T_51";
Command "update T_51 set col1 = null";
# error NumericValueOutOfRange is expected
Command "update T_51 set col1 = -21";
Command "select * from T_51";
Command "drop table T_51";
Command "create table T_52 (col1 decimal(2,2), col2 bigint)";
Command "insert T_52(col2) values (6543210987654321098)";
# error NumericValueOutOfRange is expected
Command "update T_52 set col1 = col2";
Command "select * from T_52";
Command "update T_52 set col1 = null";
# error NumericValueOutOfRange is expected
Command "update T_52 set col1 = 6543210987654321098";
Command "select * from T_52";
Command "drop table T_52";
Command "create table T_53 (col1 decimal(2,2), col2 bigint)";
Command "insert T_53(col2) values (null)";
Command "update T_53 set col1 = col2";
Command "select * from T_53";
Command "update T_53 set col1 = null";
Command "update T_53 set col1 = null";
Command "select * from T_53";
Command "drop table T_53";
Command "create table T_54 (col1 decimal(2,2), col2 bigint)";
Command "insert T_54(col2) values (1)";
# error NumericValueOutOfRange is expected
Command "update T_54 set col1 = col2";
Command "select * from T_54";
Command "update T_54 set col1 = null";
# error NumericValueOutOfRange is expected
Command "update T_54 set col1 = 1";
Command "select * from T_54";
Command "drop table T_54";
Command "create table T_55 (col1 decimal(2,2), col2 bigint)";
Command "insert T_55(col2) values (2109876543210987654)";
# error NumericValueOutOfRange is expected
Command "update T_55 set col1 = col2";
Command "select * from T_55";
Command "update T_55 set col1 = null";
# error NumericValueOutOfRange is expected
Command "update T_55 set col1 = 2109876543210987654";
Command "select * from T_55";
Command "drop table T_55";
Command "create table T_56 (col1 decimal(2,2), col2 bigint)";
Command "insert T_56(col2) values (-65)";
# error NumericValueOutOfRange is expected
Command "update T_56 set col1 = col2";
Command "select * from T_56";
Command "update T_56 set col1 = null";
# error NumericValueOutOfRange is expected
Command "update T_56 set col1 = -65";
Command "select * from T_56";
Command "drop table T_56";
Command "create table T_57 (col1 decimal(19,19), col2 bigint)";
Command "insert T_57(col2) values (0)";
Command "update T_57 set col1 = col2";
Command "select * from T_57";
Command "update T_57 set col1 = null";
Command "update T_57 set col1 = 0";
Command "select * from T_57";
Command "drop table T_57";
Command "create table T_58 (col1 decimal(19,19), col2 bigint)";
Command "insert T_58(col2) values (-1)";
# error NumericValueOutOfRange is expected
Command "update T_58 set col1 = col2";
Command "select * from T_58";
Command "update T_58 set col1 = null";
# error NumericValueOutOfRange is expected
Command "update T_58 set col1 = -1";
Command "select * from T_58";
Command "drop table T_58";
Command "create table T_59 (col1 decimal(19,19), col2 bigint)";
Command "insert T_59(col2) values (-21)";
# error NumericValueOutOfRange is expected
Command "update T_59 set col1 = col2";
Command "select * from T_59";
Command "update T_59 set col1 = null";
# error NumericValueOutOfRange is expected
Command "update T_59 set col1 = -21";
Command "select * from T_59";
Command "drop table T_59";
Command "create table T_60 (col1 decimal(19,19), col2 bigint)";
Command "insert T_60(col2) values (6543210987654321098)";
# error NumericValueOutOfRange is expected
Command "update T_60 set col1 = col2";
Command "select * from T_60";
Command "update T_60 set col1 = null";
# error NumericValueOutOfRange is expected
Command "update T_60 set col1 = 6543210987654321098";
Command "select * from T_60";
Command "drop table T_60";
Command "create table T_61 (col1 decimal(19,19), col2 bigint)";
Command "insert T_61(col2) values (null)";
Command "update T_61 set col1 = col2";
Command "select * from T_61";
Command "update T_61 set col1 = null";
Command "update T_61 set col1 = null";
Command "select * from T_61";
Command "drop table T_61";
Command "create table T_62 (col1 decimal(19,19), col2 bigint)";
Command "insert T_62(col2) values (1)";
# error NumericValueOutOfRange is expected
Command "update T_62 set col1 = col2";
Command "select * from T_62";
Command "update T_62 set col1 = null";
# error NumericValueOutOfRange is expected
Command "update T_62 set col1 = 1";
Command "select * from T_62";
Command "drop table T_62";
Command "create table T_63 (col1 decimal(19,19), col2 bigint)";
Command "insert T_63(col2) values (2109876543210987654)";
# error NumericValueOutOfRange is expected
Command "update T_63 set col1 = col2";
Command "select * from T_63";
Command "update T_63 set col1 = null";
# error NumericValueOutOfRange is expected
Command "update T_63 set col1 = 2109876543210987654";
Command "select * from T_63";
Command "drop table T_63";
Command "create table T_64 (col1 decimal(19,19), col2 bigint)";
Command "insert T_64(col2) values (-65)";
# error NumericValueOutOfRange is expected
Command "update T_64 set col1 = col2";
Command "select * from T_64";
Command "update T_64 set col1 = null";
# error NumericValueOutOfRange is expected
Command "update T_64 set col1 = -65";
Command "select * from T_64";
Command "drop table T_64";
Command "create table T_65 (col1 decimal(36,18), col2 bigint)";
Command "insert T_65(col2) values (0)";
Command "update T_65 set col1 = col2";
Command "select * from T_65";
Command "update T_65 set col1 = null";
Command "update T_65 set col1 = 0";
Command "select * from T_65";
Command "drop table T_65";
Command "create table T_66 (col1 decimal(36,18), col2 bigint)";
Command "insert T_66(col2) values (-1)";
Command "update T_66 set col1 = col2";
Command "select * from T_66";
Command "update T_66 set col1 = null";
Command "update T_66 set col1 = -1";
Command "select * from T_66";
Command "drop table T_66";
Command "create table T_67 (col1 decimal(36,18), col2 bigint)";
Command "insert T_67(col2) values (-21)";
Command "update T_67 set col1 = col2";
Command "select * from T_67";
Command "update T_67 set col1 = null";
Command "update T_67 set col1 = -21";
Command "select * from T_67";
Command "drop table T_67";
Command "create table T_68 (col1 decimal(36,18), col2 bigint)";
Command "insert T_68(col2) values (6543210987654321098)";
# error NumericValueOutOfRange is expected
Command "update T_68 set col1 = col2";
Command "select * from T_68";
Command "update T_68 set col1 = null";
# error NumericValueOutOfRange is expected
Command "update T_68 set col1 = 6543210987654321098";
Command "select * from T_68";
Command "drop table T_68";
Command "create table T_69 (col1 decimal(36,18), col2 bigint)";
Command "insert T_69(col2) values (null)";
Command "update T_69 set col1 = col2";
Command "select * from T_69";
Command "update T_69 set col1 = null";
Command "update T_69 set col1 = null";
Command "select * from T_69";
Command "drop table T_69";
Command "create table T_70 (col1 decimal(36,18), col2 bigint)";
Command "insert T_70(col2) values (1)";
Command "update T_70 set col1 = col2";
Command "select * from T_70";
Command "update T_70 set col1 = null";
Command "update T_70 set col1 = 1";
Command "select * from T_70";
Command "drop table T_70";
Command "create table T_71 (col1 decimal(36,18), col2 bigint)";
Command "insert T_71(col2) values (2109876543210987654)";
# error NumericValueOutOfRange is expected
Command "update T_71 set col1 = col2";
Command "select * from T_71";
Command "update T_71 set col1 = null";
# error NumericValueOutOfRange is expected
Command "update T_71 set col1 = 2109876543210987654";
Command "select * from T_71";
Command "drop table T_71";
Command "create table T_72 (col1 decimal(36,18), col2 bigint)";
Command "insert T_72(col2) values (-65)";
Command "update T_72 set col1 = col2";
Command "select * from T_72";
Command "update T_72 set col1 = null";
Command "update T_72 set col1 = -65";
Command "select * from T_72";
Command "drop table T_72";
TerminateSession;
InitializeSession "TESTDB";
Command "drop database TESTDB";
TerminateSession;
Terminate;
End;
