Bug #53650 Editor attemps to execute query before finished parsing query
Submitted: 14 May 2010 15:28 Modified: 20 May 2010 13:30
Reporter: Brandon Whitehead Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench: SQL Editor Severity:S2 (Serious)
Version:5.2.21RC OS:MacOS (10.6.3)
Assigned to: Alfredo Kojima CPU Architecture:Any

[14 May 2010 15:28] Brandon Whitehead
Description:
I've been using WB for five minutes (I've still using Query Browser) and I ran into two issues:

I type in a query, and hit Cmd+Return to execute query.  WB sends just the first part of the query, whch fails.  If I try again, or wait longer after typing, it seems to work fine.  It seems as if WB is attempting to send the query to the engine before it finishes parsing the query.

I've had no problems repeating this.

How to repeat:
Type in a query quickly and hit Cmd+Return to execute.  WB reports a syntax error generated from query engine because WB didn't send the entire query.

Suggested fix:
Check that query is finished parsing before sending to db engine.
[14 May 2010 17:04] Valeriy Kravchuk
Thank you for the problem report. Verified just as described on MacBook Pro with Mac OS X 10.5.x.
[18 May 2010 13:04] Alfredo Kojima
Fixed
[20 May 2010 12:38] Johannes Taxacher
fix confirmed in repository
[20 May 2010 13:30] Tony Bedford
An entry has been added to the 5.2.22 changelog:

If a query was typed in the SQL Query tab, and then cmd + Enter immediately pressed to execute the query, the query failed. This only happened on Mac OS X.