Bug #65557 Query executes in wrong tab
Submitted: 7 Jun 2012 14:56 Modified: 21 Aug 2014 20:36
Reporter: Adam Sinclair Email Updates:
Status: Closed Impact on me:
Category:MySQL Workbench: SQL Editor Severity:S2 (Serious)
Version:5.2.39 OS:Microsoft Windows (Microsoft Windows XP Professional Service Pack 3 (build 2600))
Assigned to: CPU Architecture:Any
Tags: WBBugReporter

[7 Jun 2012 14:56] Adam Sinclair
If I move a tab in the SQL Editor there is a chance that the program enters a state whereby when I run a query (either using Ctrl+Enter or by clicking on either of the lightning bolt icons) the query, from either an adjacent tab or the same tab regardless of which is active, is executed instead.

How to repeat:
1. Have multiple tabs open, each with a query that has been run.
2. Move a tab so that the tabs are in a different order.
3. Execute a query from any tab.

Note: as mentioned in Description, this does not happen all the time, but it has happened a lot to me.  I am submitting this bug restrospectively (i.e. it has not happened today, I have just noticed the bug report function and thought to report it). If it happens again I will try to provide a little more information.
[7 Jun 2012 15:33] Valeriy Kravchuk
Please, check if this ever happens with a newer version, 5.2.40.
[20 Jun 2012 17:01] Armando Lopez Valencia
Thanks a lot for your report Adam.
Reproduced in:
Windows 7x64
WB 5.2.40
Marked 65601 as duplicated from this one.
[16 Oct 2012 6:51] Olag Ulga
Sounds similar to Bug #64507 SQL Editor executes the query of the wrong tab after changing the tab order
[21 Aug 2014 20:36] Philip Olson
Fixed as of the MySQL Workbench 6.2.0 release, and here's the changelog entry:

Reordering tabs could cause query execution in an unexpected tab.

Thank you for the bug report.