Commit b11135cc authored by Sergei Golubchik's avatar Sergei Golubchik

utf8_croatian_ci my_like_range tests

parent 7e6c8ea8
......@@ -3102,6 +3102,93 @@ HEX(s1)
0061000000000000000000000009
0061
DROP TABLE t1;
create table t1 (a int, c1 varchar(200) collate utf8_croatian_ci, key (c1));
insert into t1 values (1,'=> DZ'),(2,'=> Dz'),(3,'=> dz'),(4,'=> dZ');
insert into t1 values (5,'=> DŽ'),(6,'=> Dž'),(7,'=> dž'),(8,'=> dŽ');
insert into t1 values (9,'=> dž'),(10,'=> DŽ');
select c1 from t1;
c1
=> DZ
=> Dz
=> dz
=> dZ
=> dŽ
=> DŽ
=> Dž
=> dž
=> dž
=> DŽ
select concat(c1) from t1 order by c1;
concat(c1)
=> DZ
=> Dz
=> dz
=> dZ
=> dŽ
=> DŽ
=> Dž
=> dž
=> dž
=> DŽ
select * from t1 where c1 like '=> d%';
a c1
1 => DZ
2 => Dz
3 => dz
4 => dZ
5 => DŽ
6 => Dž
7 => dž
8 => dŽ
select * from t1 where concat(c1) like '=> d%';
a c1
1 => DZ
2 => Dz
3 => dz
4 => dZ
5 => DŽ
6 => Dž
7 => dž
8 => dŽ
select * from t1 where c1 like '=> dz%';
a c1
1 => DZ
2 => Dz
3 => dz
4 => dZ
select * from t1 where concat(c1) like '=> dz%';
a c1
1 => DZ
2 => Dz
3 => dz
4 => dZ
select * from t1 where c1 like '=> dž%';
a c1
5 => DŽ
6 => Dž
7 => dž
8 => dŽ
select * from t1 where concat(c1) like '=> dž%';
a c1
5 => DŽ
6 => Dž
7 => dž
8 => dŽ
select * from t1 where c1 = '=> dž';
a c1
5 => DŽ
6 => Dž
7 => dž
9 => dž
10 => DŽ
select * from t1 where concat(c1) = '=> dž';
a c1
5 => DŽ
6 => Dž
7 => dž
9 => dž
10 => DŽ
drop table t1;
#
# End of 5.5 tests
#
......@@ -560,6 +560,23 @@ SET collation_connection=utf8_czech_ci;
SET collation_connection=ucs2_czech_ci;
--source include/ctype_czech.inc
--source include/ctype_like_ignorable.inc
create table t1 (a int, c1 varchar(200) collate utf8_croatian_ci, key (c1));
insert into t1 values (1,'=> DZ'),(2,'=> Dz'),(3,'=> dz'),(4,'=> dZ');
insert into t1 values (5,'=> DŽ'),(6,'=> Dž'),(7,'=> dž'),(8,'=> dŽ');
insert into t1 values (9,'=> dž'),(10,'=> DŽ');
select c1 from t1;
select concat(c1) from t1 order by c1;
select * from t1 where c1 like '=> d%';
select * from t1 where concat(c1) like '=> d%';
select * from t1 where c1 like '=> dz%';
select * from t1 where concat(c1) like '=> dz%';
select * from t1 where c1 like '=> dž%';
select * from t1 where concat(c1) like '=> dž%';
select * from t1 where c1 = '=> dž';
select * from t1 where concat(c1) = '=> dž';
drop table t1;
--echo #
--echo # End of 5.5 tests
--echo #
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment