Bug #66722 | SELECT INTO OUTFILE .. encoding | ||
---|---|---|---|
Submitted: | 6 Sep 2012 9:30 | Modified: | 2 Oct 2012 17:20 |
Reporter: | Peter Laursen (Basic Quality Contributor) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Documentation | Severity: | S3 (Non-critical) |
Version: | 5.1+ | OS: | Any |
Assigned to: | Paul DuBois | CPU Architecture: | Any |
[6 Sep 2012 9:30]
Peter Laursen
[6 Sep 2012 9:30]
Peter Laursen
Also see http://bugs.mysql.com/bug.php?id=66721
[6 Sep 2012 17:07]
Sveta Smirnova
Thank you for the rpeort. This feature described at http://dev.mysql.com/doc/refman/5.6/en/select-into.html: Column values are written converted to the character set specified in the CHARACTER SET clause. If no such clause is present, values are dumped using the binary character set. In effect, there is no character set conversion. If a table contains columns in several character sets, the output data file will as well and you may not be able to reload the file correctly. Is there something wrong here?
[6 Sep 2012 18:00]
Peter Laursen
OK .. accepted. I do think however there should be a more direct reference from CHARACTER SET in the page I listed. But this is a minor detail. However this is incorrect: "If a table contains columns in several character sets, the output data file .. ". It does not matter what columns a *table* contains. What matters is what columns the *result set* contains (point: the result set could contain data from one table or more tables - or from user variables or any kind of expression not referencing stored data at all). This statement should be reframed to "If the result set contains columns in several character sets, the output data file .. "
[6 Sep 2012 18:03]
Sveta Smirnova
Thank you for the feedback. Makes sense, especially if stri9ng or cast functions were used. Verified: " This statement should be reframed to "If the result set contains columns in several character sets, the output data file .. "
[2 Oct 2012 17:20]
Paul DuBois
Thank you for your bug report. This issue has been addressed in the documentation. The updated documentation will appear on our website shortly, and will be included in the next release of the relevant products.