Bug #54787 MySQL Workbench query editor — too many tabs and "Don't save" prompts
Submitted: 24 Jun 2010 19:14 Modified: 24 Jun 2010 19:20
Reporter: Aaron Kelley Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Workbench: SQL Editor Severity:S3 (Non-critical)
Version:5.2.24 OS:Windows
Assigned to: CPU Architecture:Any

[24 Jun 2010 19:14] Aaron Kelley
Description:
Some recent changes to MySQL Workbench have added an annoyance to my workflow.  I mostly use MySQL workbench for viewing data, so I open lots of tables but only make minor changes to the SQL to get what I want.

In a recent release (one of the RCs), it started prompting me to save changes to queries when I close the program.  Again, just viewing data here, I don't really care about saving the queries.  Still, not too bad, I just have to answer "Don't save" for each database connection that I had open.

In 5.2.24, now every time I open a new table, a new query tab is opened.  When I close the program, I have to answer "Don't save" for all of the tables that I've viewed all day!

How to repeat:
* Connect to a database using the SQL editor.
* Right-click on a table in the list of the left and choose "select rows".
* Repeat several times for different tables.
* Close MySQL workbench.
* I'm prompted to save all of my queries!  They're just SELECT statements... I don't care about them.

Suggested fix:
There's a few options here.

* On close, when asking to save changes to a query, have a "No to all" (or some such) button to dismiss all of the prompts and close the program.
* Have an option somewhere that controls whether or not you are even prompted to save changes to a query.
* Have an option somewhere that controls whether or not a new query tab is opened when you run a SELECT on a table (using the right-click menu).
[24 Jun 2010 19:20] Alfredo Kojima
Duplicate of bug #54754