Bug #58820 Crash on "Beautify Query"

Submitted: 8 Dec 2010 15:41 Modified: 8 Dec 2010 17:11
Reporter: Keith Barlow Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Workbench: SQL Editor Severity:S2 (Serious)
Version:5.2.30 OS:Any (Windows, Mac OS X)
Assigned to: CPU Architecture:Any

[8 Dec 2010 15:41] Keith Barlow
Description:
When formatting a query w/ improper syntax (in this case a hibernate variable of the form ":var_name" was still in the query) the crash report screen pops up indicating a significant error

How to repeat:
try to beautify the following query:

select * from table1 as t where t.column1 = :column
[8 Dec 2010 16:00] Valeriy Kravchuk
Verified on Mac OS X. This is what I've got in the output window:

Traceback (most recent call last):
  File "/Applications/MySQLWorkbench.app/Contents/PlugIns/sqlide_grt.py", line 132, in enbeautificate
    s, v, c, _line, _begin, _end = ast
ValueError: too many values to unpack
[8 Dec 2010 17:11] Alfredo Kojima
Duplicate of bug #58565

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.050 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.