Bug #69234 Restored query tabs do not show label from a previous session
Submitted: 14 May 2013 18:00 Modified: 28 Aug 2014 22:37
Reporter: Todd Sparrow Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench: SQL Editor Severity:S3 (Non-critical)
Version:6.0.7.11215 OS:Linux (Ubuntu 12.04 LTS 64bit)
Assigned to: CPU Architecture:Any
Tags: Genric Query Tab Name, Query Tabs

[14 May 2013 18:00] Todd Sparrow
Description:
After a Workbench session crash, opening a previous connection in the SQL editor correctly restores the tabs from the last connection.  However, the names of the tabs display generic "Query 1"... etc... As I open and work with tabs of various recordsets during development I rely on the names of the tabs.  While it is helpful to be able to save any work that was not before a crash, most of the time I simply have a dozen or more tabs open for development on a particular project with various recordsets and/or temporary queries.  I have to close them all and re-open in order for it to be useful.

Side note:
I am not sure what causes the crashes but usually it happens over night.  If it helps, I leave workbench open 24/7 with 4-8 different database/instances tabs running.  It crashes several times a week with no user interaction at the time of the crash.

How to repeat:
* Open several tabs in the SQL editor.
* Note the names of the tabs.
* cause a crash or kill the workbench process
* Open Workbench and open the same instance in the SQL Editor.
* Note the names are now generic.

Suggested fix:
Save the current name of the tab with the contents of the tab and add it to the restore feature.
[14 May 2013 18:08] Todd Sparrow
Update:
Since I never actually close Workbench on purpose I didn't notice that the same problem occurs if you simply close a SQL Editor tab that has several query tabs open.  When you re-open to connection the tabs are restored with generic names.
[5 Sep 2013 1:21] MySQL Verification Team
Please try version 6.0.7. Thanks.
[5 Sep 2013 3:08] Todd Sparrow
No change in the latest release.  The EXACT same problem still exists.  Note I have since upgraded the OS and moved to 64bit
[13 Sep 2013 15:46] MySQL Verification Team
Thank you for the feedback. The behavior I got is the reported by bug http://bugs.mysql.com/bug.php?id=70325 (not several queries tab with generic name). Thanks.
[17 Sep 2013 15:31] Todd Sparrow
As reported by Roman in http://bugs.mysql.com/bug.php?id=70325 this is not the same issue.  There appears to be no issue for me with the content or number of  tabs that are restored, just that the tab names(labels) are not stored and/or restored.
[28 Aug 2014 22:37] Philip Olson
Fixed as of the upcoming MySQL Workbench 6.2.2 release, and here's the changelog entry:

The query tab names would be forgotten after closing MySQL Workbench, and
these tab names are now preserved across sessions.

Thank you for the bug report.