Bug #11016 | table fields with no collation corrupt operations with collated fields | ||
---|---|---|---|
Submitted: | 1 Jun 2005 12:41 | Modified: | 21 Aug 2008 5:15 |
Reporter: | jean-pierre michaud | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Charsets | Severity: | S4 (Feature request) |
Version: | MySQL 4.1.10-standard | OS: | Linux (Linux) |
Assigned to: | Alexander Barkov | CPU Architecture: | Any |
[1 Jun 2005 12:41]
jean-pierre michaud
[1 Jun 2005 17:25]
Matthew Lord
select user from mysql.db where find_in_set(user, "blah"); This statement displays the error. The user would like to see one collation to take precedence as we do for comparisons: select user from mysql.db where user = "blah";
[21 Aug 2008 5:15]
Alexander Barkov
Thank you for your bug report. This issue was fixed in 5.0 a few months ago. Please upgeade. There are no problems with mysql-5.0.51 mysql> create table t1 (forumid int(10), parentlist varchar(250) character set utf8 collate utf8_unicode_ci); Query OK, 0 rows affected (0.03 sec) mysql> insert into t1 values (1, '11,12,13,14,15,16,17,18,19,20'); Query OK, 1 row affected (0.00 sec) mysql> set names latin1; Query OK, 0 rows affected (0.00 sec) mysql> select forumid from t1 where find_in_set('16', parentlist); +---------+ | forumid | +---------+ | 1 | +---------+ 1 row in set (0.03 sec)