1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-31 22:22:30 +03:00

Bug #6043 erratic searching for diacriticals in indexed MyISAM UTF-8 table

This commit is contained in:
bar@mysql.com
2004-10-14 14:14:50 +05:00
parent 9b2cc44e74
commit 2f8f0f2eb2
3 changed files with 55 additions and 6 deletions

View File

@@ -750,3 +750,32 @@ SELECT id FROM t1 WHERE (list_id = 1) AND (term = "letterd");
id
4
DROP TABLE t1;
SET NAMES latin1;
CREATE TABLE t1 (
id int unsigned NOT NULL auto_increment,
list_id smallint unsigned NOT NULL,
term text NOT NULL,
PRIMARY KEY(id),
INDEX(list_id, term(19))
) TYPE=MyISAM CHARSET=utf8;
Warnings:
Warning 1287 'TYPE=storage_engine' is deprecated; use 'ENGINE=storage_engine' instead
INSERT INTO t1 set list_id = 1, term = "test<73>test";
INSERT INTO t1 set list_id = 1, term = "testetest";
INSERT INTO t1 set list_id = 1, term = "test<73>test";
SELECT id, term FROM t1 where (list_id = 1) AND (term = "test<73>test");
id term
1 test<73>test
2 testetest
3 test<73>test
SELECT id, term FROM t1 where (list_id = 1) AND (term = "testetest");
id term
1 test<73>test
2 testetest
3 test<73>test
SELECT id, term FROM t1 where (list_id = 1) AND (term = "test<73>test");
id term
1 test<73>test
2 testetest
3 test<73>test
DROP TABLE t1;