Loading mysql-test/t/view.test +11 −0 Original line number Diff line number Diff line Loading @@ -1943,6 +1943,17 @@ create view v1 as select timestampdiff(day,'1997-01-01 00:00:00','1997-01-02 00: select * from v1; drop view v1; # # Bug #10624 Views with multiple UNION and UNION ALL produce incorrect results # create table t1 (f1 int); create table t2 (f1 int); insert into t1 values (1); insert into t2 values (2); create view v1 as select * from t1 union select * from t2 union all select * from t2; select * from v1; drop view v1; drop table t1,t2; # # Test for bug #10970: view referring a temporary table indirectly # Loading Loading
mysql-test/t/view.test +11 −0 Original line number Diff line number Diff line Loading @@ -1943,6 +1943,17 @@ create view v1 as select timestampdiff(day,'1997-01-01 00:00:00','1997-01-02 00: select * from v1; drop view v1; # # Bug #10624 Views with multiple UNION and UNION ALL produce incorrect results # create table t1 (f1 int); create table t2 (f1 int); insert into t1 values (1); insert into t2 values (2); create view v1 as select * from t1 union select * from t2 union all select * from t2; select * from v1; drop view v1; drop table t1,t2; # # Test for bug #10970: view referring a temporary table indirectly # Loading