Bug #58686 | CREATE TABLE .. CHARSET=<...> without a COLLATE using case-insensitive collation | ||
---|---|---|---|
Submitted: | 3 Dec 2010 0:16 | Modified: | 15 Dec 2010 23:39 |
Reporter: | Greg Kemnitz | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 5.1.43sp1-enterprise-gpl | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | case insensitive, case sensitive, charset, collate, CREATE TABLE |
[3 Dec 2010 0:16]
Greg Kemnitz
[3 Dec 2010 0:18]
Greg Kemnitz
The "suggested fix" applies to CREATE TABLE with CHARSET defined but not COLLATE defined. Since this is ambiguous, it would also be reasonable to simply produce an error if CHARSET is defined without COLLATE - instead of producing a potentially problematic default.
[15 Dec 2010 23:39]
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 If CHARACTER SET X was specified without COLLATE, then character set X and its default collation are used. Default collation for latin1 is latin1_swedish_ci. See also http://dev.mysql.com/doc/refman/5.1/en/charset-charsets.html and output of query show character set;