Bug #34407 | Illegal mix of collations (utf8_general_ci,IMPLICIT) and (latin1_swedish_ci,COE | ||
---|---|---|---|
Submitted: | 8 Feb 2008 9:28 | Modified: | 11 Feb 2008 10:38 |
Reporter: | Syam lal | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 5.0.45 | OS: | Windows |
Assigned to: | CPU Architecture: | Any | |
Tags: | COERCIBLE, for operation 'UNION', Illegal mix of collations, implicit, latin1_swedish_ci, utf8_general_ci |
[8 Feb 2008 9:28]
Syam lal
[11 Feb 2008 10:38]
Sveta Smirnova
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://dev.mysql.com/doc/ and the instructions on how to report a bug at http://bugs.mysql.com/how-to-report.php You have in my.ini: default-character-set=latin1 default-character-set=latin1 default-storage-engine=INNODB Also you have in the query: SELECT (...`HT_NEWS`.`NEWS_IMG` AS `NEWS_IMG`, ...) UNION SELECT (... IF(`HT_PROJECTS`.`PRJ_ENABLE` = 'Y','','') AS `NEWS_IMG`, ...) ... So for first table you use column collation which is utf8_general_ci and for second client collation which is latin1_swedish_ci See also http://dev.mysql.com/doc/refman/5.0/en/internationalization-localization.html