diff --git a/mysql-test/r/union.result b/mysql-test/r/union.result index 663793e0b5e..b1dea29304e 100644 --- a/mysql-test/r/union.result +++ b/mysql-test/r/union.result @@ -1195,3 +1195,8 @@ a b 2 b 3 c drop table t1; +set @val:=6; +select concat('value is: ', @val) union select 'some text'; +concat('value is: ', @val) +value is: 6 +some text diff --git a/mysql-test/t/union.test b/mysql-test/t/union.test index 5ff22f1d6b6..7924d4184ce 100644 --- a/mysql-test/t/union.test +++ b/mysql-test/t/union.test @@ -729,3 +729,9 @@ select * from ((select * from t1 limit 1) union (select * from t1 limit 1) union select * from ((((select * from t1))) union (select * from t1) union (select * from t1)) a; select * from ((select * from t1) union (((select * from t1))) union (select * from t1)) a; drop table t1; + +# +# Bugs#6519 UNION with collation binary and latin1_swedish_ci fails +# +set @val:=6; +select concat('value is: ', @val) union select 'some text';