Bug #20123 | #1267 - Illegal mix of collations (latin1_general_ci,IMPLICIT) and (latin1_swed | ||
---|---|---|---|
Submitted: | 29 May 2006 11:04 | Modified: | 30 Jun 2006 16:39 |
Reporter: | ejaz sakhi | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Query Browser | Severity: | S3 (Non-critical) |
Version: | 1.0 | OS: | Windows (windows 2000) |
Assigned to: | CPU Architecture: | Any |
[29 May 2006 11:04]
ejaz sakhi
[30 May 2006 16:40]
Valeriy Kravchuk
Thank you for a problem report. Please, specify the exact versions of Query Browser and MySQL server used.
[23 Jun 2006 14:56]
Sergiy Kuzmenko
I have the same problem. Here are some details: MySQL server: 4.1.11-standard (Linux) Query Browser: 1.1.20 (Win XP Pro) Table definition (from "show create table"): CREATE TABLE `test` ( `id` int(10) unsigned NOT NULL auto_increment, `name` varchar(40) default NULL, `music` set('Classical','Jazz','Rock','World','Other') default NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 Query: select * from test where find_in_set('Classical', music) = 0; This query executes ok if run directly on the server (locale is set to en_US.UTF-8) from mysql client program. However, when entered from the QB remotely it gives me "illegal mix of collations" error. If I check table details in the QB I see that it implicitely sets collation for this table to latin1_swedish_ci.
[30 Jun 2006 23:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
[4 Aug 2007 15:04]
Brice Burgess
I also am experiencing the same problem. It doesn't happen in the MySQL shell, only in the MySQL Tools' Query Browser. [!-- QUERY --!] SELECT field_id, IF (field_id=10,FROM_UNIXTIME(value,'%Y'),value), subscriber_id FROM `pommo_subscriber_data` WHERE subscriber_id IN(6,2,1,11,8,10,3,4,9,7,5); [!-- RESULT --!] Query Browser: Error executing query. 1267 - Illegal mix of collations (utf8_general_ci,COERCIBLE) and (latin1_swedish_ci,IMPLICIT) for operation 'if' [!-- WORKAROUNDS --!] 1) If I change the character set/collation of the pommo_subscriber_data table to utf8 via; "ALTER TABLE pommo_subscriber_data CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;" it will *work in the query broswer* 2) The query executes *fine* in MySQL shell regardless of the character set/collation of pommo_subscriber_data -- leading me to believe this issue is related to the libraries the Query Browser is linked against?? Pertinent Info: MySQL Query Browser: 1.2.12 MySQL Server: mysql Ver 14.12 Distrib 5.0.45, for pc-linux-gnu (i686) using readline 5.2 libmysqlclient: 5.0.45 System: Linux Slade 2.6.22-iCEBURG #11 Fri Aug 3 21:19:33 EDT 2007 i686 AMD Athlon(tm) 64 Processor 3000+ AuthenticAMD GNU/Linux Let me know if there's anything else I can provide. Thanks! ~ Brice