Bug #66843 | IFNULL() giving "Illegal mix of collations" error while IF() does not. | ||
---|---|---|---|
Submitted: | 17 Sep 2012 11:48 | Modified: | 20 Sep 2012 18:57 |
Reporter: | Ulrik Johansson | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 5.5.27 | OS: | Windows (windows 7 x64) |
Assigned to: | CPU Architecture: | Any |
[17 Sep 2012 11:48]
Ulrik Johansson
[17 Sep 2012 12:09]
Peter Laursen
'Sideline comment' only: I don't think this " ..IF(date1 <> NULL, date1, date2 .." in the workaround will work as expected. In my understanding it should be " .. IF(date1 IS NOT NULL, date1, date2 .. " Peter (not a MySQL/Oracle person)
[17 Sep 2012 13:55]
Ulrik Johansson
Thanks for the tip Peter, I've changed my workaround now. IF() still seems to work fine, while IFNULL() does not.
[18 Sep 2012 19:50]
Sveta Smirnova
Thank you for the report. Please send us output of SHOW CREATE TABLE test and SHOW VARIABLES LIKE '%char%'; SHOW VARIABLES LIKE '%col%';
[19 Sep 2012 14:45]
Ulrik Johansson
Debug information as requested
Attachment: debug info.txt (text/plain), 751 bytes.
[20 Sep 2012 18:57]
Sveta Smirnova
Thank you for the feedback. This is not a bug: you have collation_connection set to utf8_general_ci while table uses utf_swedish_ci. DATE columns use collations in 5.5.