Bug #58216 | SELECT INTO OUTFILE doesn't respect the names | ||
---|---|---|---|
Submitted: | 15 Nov 2010 23:57 | Modified: | 16 Nov 2010 23:39 |
Reporter: | Emiliano Perez | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Charsets | Severity: | S3 (Non-critical) |
Version: | 5.0.84-log | OS: | Linux (Gentoo) |
Assigned to: | CPU Architecture: | Any | |
Tags: | INTO, Latin1, names, outfile, SELECT, utf8 |
[15 Nov 2010 23:57]
Emiliano Perez
[16 Nov 2010 9:42]
Peter Laursen
SELECT INTO OUTFILE does not involve the client at all. SET NAMES has no effect - and cannot have. Once MySQL add a LOCAL option (what I hope they do one day) to SELECT INTO OUTFILE it could be otherwise. This double encoding stuff is a mess. You can repair it in 2 steps 1) changing all encoded string columns to binary string columns (varbinary, BLOB) 2) Changing back to encoded string columns matching what is actually stored (ie. columns should be latin1 in your case) Peter (not a MySQL person)
[16 Nov 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 You use character sets in wrong way thus unexpected behavior is expected. Please read at http://dev.mysql.com/doc/refman/5.0/en/charset-conversion.html how to properly convert your data.