Bug #53733 Saving script will overwrite other scripts
Submitted: 18 May 2010 8:02 Modified: 28 May 2010 13:01
Reporter: Susanne Ebrecht Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench: SQL Editor Severity:S3 (Non-critical)
Version:5.2.21 OS:Linux
Assigned to: Alfredo Kojima CPU Architecture:Any

[18 May 2010 8:02] Susanne Ebrecht
Description:
Open Workbench
Open connection to start querying
Use ctrl-t and open 3 or 4 tabs
Fill every tab

Use something like:

tab 1:
Select 1;

tab 2:
Select 2;

tab 3:
Select 3;

Goto tab 1 and press file -> save script.

Name the file e.g. foo.

Look into foo and figure out that SELECT 1; is saved.

Goto tab 2 and press file -> save script.

I would expect that the system is pleading me to fill another name here but instead of this the system just overwrites my file foo.

Look into foo and you will see that SELECT 2; is saved and SELECT 1; is gone.

How to repeat:
See above
[18 May 2010 20:24] Alfredo Kojima
fixed
[26 May 2010 21:21] Johannes Taxacher
fix confirmed in repository
[28 May 2010 13:01] Tony Bedford
An entry has been added to the 5.2.22 changelog:

In the SQL Editor, with multiple tabs open, if the script in each tab was saved to a file in turn, the script was actually saved over the previously saved script, resulting in the loss of that script.