Bug #51308 | MySQL Workbench Query Editor doesn't use OS appropriate file format | ||
---|---|---|---|
Submitted: | 19 Feb 2010 8:38 | Modified: | 20 May 2010 10:35 |
Reporter: | Terry Bailey | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Workbench: SQL Editor | Severity: | S2 (Serious) |
Version: | 5.2.16 rev 5249 | OS: | Windows (Windows 7) |
Assigned to: | Sergei Tkachenko | CPU Architecture: | Any |
Tags: | SQL Editor Query EOL crlf new line |
[19 Feb 2010 8:38]
Terry Bailey
[19 Feb 2010 9:56]
Valeriy Kravchuk
Thank you for the bug report. Verified just as described on Windows XP. Looks like SQL Editor uses/expects UNIX-style 0x0D line endings in scripts instead of DOS/Windows 0x0A 0x0D.
[13 Apr 2010 23:23]
Alfredo Kojima
SQL Editor should detect line ending and convert them on load in Windows. When saving, crlf should be used in windows.
[14 May 2010 10:55]
Sergei Tkachenko
SQL Editor was enhanced to support custom EOL formats and now preserves original line endings used in the file. Platform default EOL format is used for new files. In case of line endings inconsistency in the file, WB suggests user to select EOL format to apply, which aligns all EOLs to the specified format.
[18 May 2010 18:01]
Johannes Taxacher
fix confirmed in repository
[20 May 2010 10:35]
Tony Bedford
An entry has been added to the 5.2.22 changelog: If a SQL file, using Windows file format, was loaded into the SQL Editor, it was displayed with additional line breaks, and the SQL code was not interpreted correctly. Further, if code written in the SQL editor was saved to a file and then opened in an editor on Windows, it contained additional line breaks.
[23 May 2010 13:07]
Alfredo Kojima
Bug #53868 marked as duplicate