summaryrefslogtreecommitdiff
path: root/mysql-test/t/func_in.test
diff options
context:
space:
mode:
authorbar@mysql.com <>2004-09-01 15:39:15 +0500
committerbar@mysql.com <>2004-09-01 15:39:15 +0500
commit153e18a25237c89e347317beffea6ecc0121e894 (patch)
tree77ebcecccdab54d0eed739c08f6404be23bc1aff /mysql-test/t/func_in.test
parent4f32cd2b3d415c9ce3d3835f1974428f37a7f235 (diff)
downloadmariadb-git-153e18a25237c89e347317beffea6ecc0121e894.tar.gz
Allow IN to convert arguments into Unicode in some cases.
Diffstat (limited to 'mysql-test/t/func_in.test')
-rw-r--r--mysql-test/t/func_in.test7
1 files changed, 7 insertions, 0 deletions
diff --git a/mysql-test/t/func_in.test b/mysql-test/t/func_in.test
index 855a7cbd28f..22079377ad2 100644
--- a/mysql-test/t/func_in.test
+++ b/mysql-test/t/func_in.test
@@ -75,6 +75,13 @@ select * from t1 where 'a' in (a,b,c collate latin1_bin);
explain extended select * from t1 where 'a' in (a,b,c collate latin1_bin);
drop table t1;
+set names utf8;
+create table t1 (a char(10) character set utf8 not null);
+insert into t1 values ('bbbb'),(_koi8r'ÃÃÃÃ'),(_latin1'ÄÄÄÄ');
+select a from t1 where a in ('bbbb',_koi8r'ÃÃÃÃ',_latin1'ÄÄÄÄ') order by a;
+drop table t1;
+set names latin1;
+
select '1.0' in (1,2);
select 1 in ('1.0',2);
select 1 in (1,'2.0');