1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

ctype_ucs.result, ctype_ucs.test, item.cc:

#5024 [Ver]: Server crashes with queries on fields with certain charset/collation settings
This commit is contained in:
bar@mysql.com
2004-08-13 11:13:56 +05:00
parent 3fdc2999b7
commit 186e6cb2d6
3 changed files with 26 additions and 4 deletions

View File

@@ -464,3 +464,9 @@ HEX(a)
AAAA
000AAAAA
DROP TABLE t1;
create table t1 (s1 char character set `ucs2` collate `ucs2_czech_ci`);
insert into t1 values ('0'),('1'),('2'),('a'),('b'),('c');
select s1 from t1 where s1 > 'a' order by s1;
s1
b
c

View File

@@ -293,3 +293,14 @@ SELECT HEX(a) FROM t1;
DROP TABLE t1;
-- the same should be also done with enum and set
#
# Bug #5024 Server crashes with queries on fields
# with certain charset/collation settings
#
create table t1 (s1 char character set `ucs2` collate `ucs2_czech_ci`);
insert into t1 values ('0'),('1'),('2'),('a'),('b'),('c');
select s1 from t1 where s1 > 'a' order by s1;