summaryrefslogtreecommitdiff
path: root/mysql-test/r/ctype_recoding.result
diff options
context:
space:
mode:
authorunknown <bar@mysql.com>2005-11-21 17:26:31 +0400
committerunknown <bar@mysql.com>2005-11-21 17:26:31 +0400
commit72d19611d198164e1fcd2e16b270a11824d860bf (patch)
tree05c91bc3d02c0f22aab0913b8e7228667bb5ff38 /mysql-test/r/ctype_recoding.result
parent83bbd30c480d97f57203b999cff4517f5e04bf13 (diff)
downloadmariadb-git-72d19611d198164e1fcd2e16b270a11824d860bf.tar.gz
Bug#10446 Illegal mix of collations:
item_strfunc.h, item_strfunc.cc, item.cc: Try to convert a const item into destination character set. If conversion happens without data loss, then cache the converted value and return it during val_str(). Otherwise, if conversion loses data, return Illeral mix of collations error, as it happened previously. ctype_recoding.result, ctype_recoding.test: Fixing tests accordingly. sql/item.cc: Bug#10446 Illegal mix of collations Try to convert a const item into destination character set. If conversion happens without data loss, then cache the converted value and return it during val_str(). Otherwise, if conversion loses data, return Illeral mix of collations error, as it happened previously. sql/item_strfunc.cc: Return cached value when it's possible. mysql-test/t/ctype_recoding.test: Fixing tests accordingly. mysql-test/r/ctype_recoding.result: Fixing tests accordingly.
Diffstat (limited to 'mysql-test/r/ctype_recoding.result')
-rw-r--r--mysql-test/r/ctype_recoding.result9
1 files changed, 8 insertions, 1 deletions
diff --git a/mysql-test/r/ctype_recoding.result b/mysql-test/r/ctype_recoding.result
index 1c75988fd21..0b5c6f8974c 100644
--- a/mysql-test/r/ctype_recoding.result
+++ b/mysql-test/r/ctype_recoding.result
@@ -181,11 +181,18 @@ select * from t1 where a=_koi8r'×ÁÓÑ';
a
×ÁÓÑ
select * from t1 where a=concat(_koi8r'×ÁÓÑ');
-ERROR HY000: Illegal mix of collations (cp1251_general_ci,IMPLICIT) and (koi8r_general_ci,COERCIBLE) for operation '='
+a
+×ÁÓÑ
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;
+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,' ');
+a
+ xxx
+drop table t1;
set names koi8r;
create table t1 (c1 char(10) character set cp1251);
insert into t1 values ('ß');