Bug #58347 | Workbench Reformat SQL Query creates invalid queries | ||
---|---|---|---|
Submitted: | 20 Nov 2010 14:15 | Modified: | 13 Dec 2010 14:10 |
Reporter: | James Bromberger | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Workbench | Severity: | S3 (Non-critical) |
Version: | 5.2.30 | OS: | Windows |
Assigned to: | Alfredo Kojima | CPU Architecture: | Any |
Tags: | plugins, sql editor |
[20 Nov 2010 14:15]
James Bromberger
[21 Nov 2010 0:14]
Alfredo Kojima
Thank you for the report. The bug has been fixed in the repository. You can fix the bug in your copy of WB by editing sql_reformatter.py and inserting the following lines around line 480, with a newline before and after the code: def sym_USING(self, value, children): self.out(" %s " % value)
[21 Nov 2010 3:20]
James Bromberger
Sweet! Many thanks. Workbench has, in the last few releases, really picked up. I think I've just fallen in love with it. Well done & thank you.
[8 Dec 2010 20:26]
Johannes Taxacher
fix confirmed in repository
[13 Dec 2010 14:10]
Tony Bedford
An entry has been added to the 5.2.31 changelog: In the SQL Editor, using the code beautifier on a query containing USING resulted in an invalid query being generated. This was due to missing spaces around USING.