MySQL Forums
Forum List  »  InnoDB

incorrect results with WHERE clause on table with accented characters
Posted by: mb33140
Date: January 12, 2005 01:13PM

I have a table which contains a varchar field containing accented characters. When I do a search with a WHERE clause, it incorrectly matches accented characters, as follows:

select * FROM Attribute WHERE Name Like 'y%'

returns:
1820 Yardbirds
9754 Überdosis G'fühl
2657 Year Of The Cat

Record 9754 does not start with a y. I would expect the accented U to either match nothing, or to match U, but why does it match Y?

Here is the table info:

Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment
--------- ---------- -------- ------------ ------------ --------- ----------- -------- ------ ------ ---------- -------
Attribute 0 PRIMARY 1 PK_Attribute A 11584 (NULL) (NULL) BTREE

CREATE TABLE `Attribute` ( `PK_Attribute` int(11) NOT NULL auto_increment, `Name` varchar(40) NOT NULL default '', PRIMARY KEY (`PK_Attribute`) ) TYPE=InnoDB

Thanks.

Options: ReplyQuote


Subject
Views
Written By
Posted
incorrect results with WHERE clause on table with accented characters
4220
January 12, 2005 01:13PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.