Bug #32423 | Character set specified on column w/o collation leads to err 1271 in UNION | ||
---|---|---|---|
Submitted: | 15 Nov 2007 23:16 | Modified: | 29 Nov 2007 16:53 |
Reporter: | Mattias Thorslund | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: General | Severity: | S3 (Non-critical) |
Version: | 5.0.45 | OS: | Linux |
Assigned to: | Georgi Kodinov | CPU Architecture: | Any |
[15 Nov 2007 23:16]
Mattias Thorslund
[16 Nov 2007 5:30]
Valeriy Kravchuk
Thank you for a bug report. Verified just as described.
[29 Nov 2007 16:53]
Georgi Kodinov
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 Chapter 9.1.3.4. "Column Character Set and Collation" (http://dev.mysql.com/doc/refman/5.1/en/charset-column.html) says : "If CHARACTER SET X was specified without COLLATE, then character set X and its default collation are used.". According to 9.1.11. "Character Sets and Collations That MySQL Supports" (http://dev.mysql.com/doc/refman/5.1/en/charset-charsets.html) the default collation for the utf-8 charset is utf8_general_ci. As a result the collation of test1.textCol (utf8_general_ci, the default for the column charset utf8) differs from the collation of test2.textCol (utf8_unicode_ci, inherited from the table collation specifier) and you're getting the error.