diff options
Diffstat (limited to 'mysql-test/t/union.test')
-rw-r--r-- | mysql-test/t/union.test | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/mysql-test/t/union.test b/mysql-test/t/union.test index c88ac4e70d8..60963548eed 100644 --- a/mysql-test/t/union.test +++ b/mysql-test/t/union.test @@ -473,14 +473,3 @@ create table t1 ( RID int(11) not null default '0', IID int(11) not null def insert into t1 ( RID,IID,nada,NAME,PHONE) values (1, 1, 'main', 'a', '111'), (2, 1, 'main', 'b', '222'), (3, 1, 'main', 'c', '333'), (4, 1, 'main', 'd', '444'), (5, 1, 'main', 'e', '555'), (6, 2, 'main', 'c', '333'), (7, 2, 'main', 'd', '454'), (8, 2, 'main', 'e', '555'), (9, 2, 'main', 'f', '666'), (10, 2, 'main', 'g', '777'); select A.NAME, A.PHONE, B.NAME, B.PHONE from t1 A left join t1 B on A.NAME = B.NAME and B.IID = 2 where A.IID = 1 and (A.PHONE <> B.PHONE or B.NAME is null) union select A.NAME, A.PHONE, B.NAME, B.PHONE from t1 B left join t1 A on B.NAME = A.NAME and A.IID = 1 where B.IID = 2 and (A.PHONE <> B.PHONE or A.NAME is null); drop table t1; - -# -# bug #2552 -# ---disable_warnings -create table t1 ( id int, name char(10) not null, name2 char(10) not null ) engine=innodb; ---enable_warnings -insert into t1 values(1,'first','fff'),(2,'second','sss'),(3,'third','ttt'); -select name2 from t1 union all select name from t1 union all select id from t1; -drop table t1; - |