summaryrefslogtreecommitdiff
path: root/mysql-test/r/ctype_recoding.result
diff options
context:
space:
mode:
authorunknown <bar@mysql.com/bar.myoffice.izhnet.ru>2007-08-07 19:25:45 +0500
committerunknown <bar@mysql.com/bar.myoffice.izhnet.ru>2007-08-07 19:25:45 +0500
commitc6e88899460bd3478761f37a873a822f379a170d (patch)
tree2abd528f18f707819e6b51df6ba1f19a5a9d7ddf /mysql-test/r/ctype_recoding.result
parent6c1edb11d44d7b4308c9d9ddb50bc41be895682d (diff)
downloadmariadb-git-c6e88899460bd3478761f37a873a822f379a170d.tar.gz
Reversing additional change suggested by Serg
under terms of bug#28875 for better performance. The change appeared to require more changes in item_cmpfunc.cc, which is dangerous in 5.0. Conversion between a latin1 column and an ascii string constant stopped to work. mysql-test/r/ctype_recoding.result: Adding test case. mysql-test/t/ctype_recoding.test: Adding test case.
Diffstat (limited to 'mysql-test/r/ctype_recoding.result')
-rw-r--r--mysql-test/r/ctype_recoding.result8
1 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/r/ctype_recoding.result b/mysql-test/r/ctype_recoding.result
index 125e0edd1f9..3826792306f 100644
--- a/mysql-test/r/ctype_recoding.result
+++ b/mysql-test/r/ctype_recoding.result
@@ -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,' ');