mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge mysql.com:/nfsdisk1/lars/bkroot/mysql-5.0-rpl
into mysql.com:/nfsdisk1/lars/MERGE/mysql-5.0-merge
This commit is contained in:
@ -187,6 +187,14 @@ select * from t1 where a=_latin1'
|
||||
ERROR HY000: Illegal mix of collations (cp1251_general_ci,IMPLICIT) and (latin1_swedish_ci,COERCIBLE) for operation '='
|
||||
drop table t1;
|
||||
set names latin1;
|
||||
set names ascii;
|
||||
create table t1 (a char(1) character set latin1);
|
||||
insert into t1 values ('a');
|
||||
select * from t1 where a='a';
|
||||
a
|
||||
a
|
||||
drop table t1;
|
||||
set names latin1;
|
||||
create table t1 (a char(10) character set utf8 collate utf8_bin);
|
||||
insert into t1 values (' xxx');
|
||||
select * from t1 where a=lpad('xxx',10,' ');
|
||||
|
@ -152,6 +152,16 @@ select * from t1 where a=_latin1'
|
||||
drop table t1;
|
||||
set names latin1;
|
||||
|
||||
#
|
||||
# Test the same with ascii
|
||||
#
|
||||
set names ascii;
|
||||
create table t1 (a char(1) character set latin1);
|
||||
insert into t1 values ('a');
|
||||
select * from t1 where a='a';
|
||||
drop table t1;
|
||||
set names latin1;
|
||||
|
||||
#
|
||||
# Bug#10446 Illegal mix of collations
|
||||
#
|
||||
|
Reference in New Issue
Block a user