Loading mysql-test/r/type_decimal.result +1 −0 Original line number Diff line number Diff line Loading @@ -811,6 +811,7 @@ insert into t1 values (-0.123456,0.123456); select group_concat(f1),group_concat(f2) from t1; group_concat(f1) group_concat(f2) -0.123456 0.123456 drop table t1; create table t1 ( ua_id decimal(22,0) not null, ua_invited_by_id decimal(22,0) default NULL, Loading mysql-test/t/type_decimal.test +15 −0 Original line number Diff line number Diff line Loading @@ -425,5 +425,20 @@ insert into t1 values (-0.123456,0.123456); select group_concat(f1),group_concat(f2) from t1; drop table t1; # # BUG#31450 "Query causes error 1048" # create table t1 ( ua_id decimal(22,0) not null, ua_invited_by_id decimal(22,0) default NULL, primary key(ua_id) ); insert into t1 values (123, NULL), (456, NULL); --echo this must not produce error 1048: select * from t1 where ua_invited_by_id not in (select ua_id from t1); drop table t1; --echo End of 5.0 tests Loading
mysql-test/r/type_decimal.result +1 −0 Original line number Diff line number Diff line Loading @@ -811,6 +811,7 @@ insert into t1 values (-0.123456,0.123456); select group_concat(f1),group_concat(f2) from t1; group_concat(f1) group_concat(f2) -0.123456 0.123456 drop table t1; create table t1 ( ua_id decimal(22,0) not null, ua_invited_by_id decimal(22,0) default NULL, Loading
mysql-test/t/type_decimal.test +15 −0 Original line number Diff line number Diff line Loading @@ -425,5 +425,20 @@ insert into t1 values (-0.123456,0.123456); select group_concat(f1),group_concat(f2) from t1; drop table t1; # # BUG#31450 "Query causes error 1048" # create table t1 ( ua_id decimal(22,0) not null, ua_invited_by_id decimal(22,0) default NULL, primary key(ua_id) ); insert into t1 values (123, NULL), (456, NULL); --echo this must not produce error 1048: select * from t1 where ua_invited_by_id not in (select ua_id from t1); drop table t1; --echo End of 5.0 tests