Bug #44437 Forward Engineer SQL Create Script Wizard Does Not Warn When Overwriting
Submitted: 23 Apr 2009 15:51 Modified: 10 Jun 2009 13:31
Reporter: Marc Liyanage Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Severity:S3 (Non-critical)
Version:5.1.10 Beta Rev 5306 OS:MacOS (10.5.6)
Assigned to: Alfredo Kojima CPU Architecture:Any
Tags: CHECKED

[23 Apr 2009 15:51] Marc Liyanage
Description:
Forward Engineer SQL Create Script Wizard does not ask the user for confirmation if the output file already exists for invocations other than the first ones, when it re-uses the filename picked by the user in the first invocation.

It does ask the first time around, when I use the "Browse" button and pick a file that exists.

How to repeat:
1.) Open a Workbench document
2.) Run File > Export > Forward Engineer SQL CREATE Script
3.) Use the Browse button to set the destination
4.) Perform the remaining Wizard steps
5.) Run File > Export > Forward Engineer SQL CREATE Script again
6.) You can click Continue > Continue > Finish and Workbench will overwrite the existing file without asking the user for confirmation.

Suggested fix:
I actually like it this way, but it is unusual and possibly dangerous not to ask for confirmation when overwriting a file, especially because it does ask when using the Browse button.
[23 Apr 2009 15:55] Valeriy Kravchuk
Thank you for the problem report.
[3 Jun 2009 19:14] Johannes Taxacher
when selecting a filename of an already existing file,  WB now displays a dialog asking if user wants to replace existing file. will be included in 5.1.13
[10 Jun 2009 13:31] Tony Bedford
An entry was added to the 5.1.13 changelog:

The Forward Engineer SQL Script wizard would write over an existing file without prompting the user for confirmation.