diff options
author | unknown <bar@mysql.com> | 2004-11-18 16:15:48 +0400 |
---|---|---|
committer | unknown <bar@mysql.com> | 2004-11-18 16:15:48 +0400 |
commit | fdc0d0a919e18eb95dd5b3dd9f9eb15cb82dd7ed (patch) | |
tree | e82d547acde3aff9da83053ba9d9cbbee23c0683 /mysql-test | |
parent | d995bed2bba7074b47378c96a75c60d5bd39ae95 (diff) | |
download | mariadb-git-fdc0d0a919e18eb95dd5b3dd9f9eb15cb82dd7ed.tar.gz |
Check that the third UNION part with COLLATE
clause resolves collation conflict for the
first and the second parts pair.
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/r/union.result | 10 | ||||
-rw-r--r-- | mysql-test/t/union.test | 6 |
2 files changed, 16 insertions, 0 deletions
diff --git a/mysql-test/r/union.result b/mysql-test/r/union.result index 7820cd1d6ff..49a2907f571 100644 --- a/mysql-test/r/union.result +++ b/mysql-test/r/union.result @@ -1110,4 +1110,14 @@ t1 CREATE TABLE `t1` ( `a` char(1) character set latin1 collate latin1_german1_ci default NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1 drop table t1; +create table t1 as +(select a from t2) union +(select b from t2) union +(select 'c' collate latin1_german1_ci from t2); +show create table t1; +Table Create Table +t1 CREATE TABLE `t1` ( + `a` char(1) character set latin1 collate latin1_german1_ci default NULL +) ENGINE=MyISAM DEFAULT CHARSET=latin1 +drop table t1; drop table t2; diff --git a/mysql-test/t/union.test b/mysql-test/t/union.test index 36027e8c4cb..468a88b83db 100644 --- a/mysql-test/t/union.test +++ b/mysql-test/t/union.test @@ -652,5 +652,11 @@ create table t1 as (select b collate latin1_german1_ci from t2); show create table t1; drop table t1; +create table t1 as +(select a from t2) union +(select b from t2) union +(select 'c' collate latin1_german1_ci from t2); +show create table t1; +drop table t1; drop table t2; |