mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Bug#10253: compound index length and utf8 char set
produces invalid query results mi_key.c: well_formed_length should be executed before space trimming, not after. ctype_utf8.test: ctype_utf8.result: adding test. myisam/mi_key.c: Bug#10253: ompound index length and utf8 char set produces invalid query results well_formed_length should be executed before space trimming, not after. mysql-test/r/ctype_utf8.result: adding test. adding test. mysql-test/t/ctype_utf8.test: adding test.
This commit is contained in:
@ -891,3 +891,14 @@ string
|
||||
create table t1 (a varchar(255)) default character set utf8;
|
||||
insert into t1 values (1.0);
|
||||
drop table t1;
|
||||
create table t1 (
|
||||
id int not null,
|
||||
city varchar(20) not null,
|
||||
key (city(7),id)
|
||||
) character set=utf8;
|
||||
insert into t1 values (1,'Durban North');
|
||||
insert into t1 values (2,'Durban');
|
||||
select * from t1 where city = 'Durban';
|
||||
id city
|
||||
2 Durban
|
||||
drop table t1;
|
||||
|
@ -731,3 +731,17 @@ select ifnull(NULL, _utf8'string');
|
||||
create table t1 (a varchar(255)) default character set utf8;
|
||||
insert into t1 values (1.0);
|
||||
drop table t1;
|
||||
|
||||
#
|
||||
# Bug#10253 compound index length and utf8 char set
|
||||
# produces invalid query results
|
||||
#
|
||||
create table t1 (
|
||||
id int not null,
|
||||
city varchar(20) not null,
|
||||
key (city(7),id)
|
||||
) character set=utf8;
|
||||
insert into t1 values (1,'Durban North');
|
||||
insert into t1 values (2,'Durban');
|
||||
select * from t1 where city = 'Durban';
|
||||
drop table t1;
|
||||
|
Reference in New Issue
Block a user