mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 20:07:13 +02:00
Check that the third UNION part with COLLATE
clause resolves collation conflict for the first and the second parts pair.
This commit is contained in:
parent
ede2179175
commit
8453693a05
2 changed files with 16 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue