Bug #61160 | When closing query window - need to add confirmation | ||
---|---|---|---|
Submitted: | 13 May 2011 7:40 | Modified: | 2 Sep 2011 6:44 |
Reporter: | Ilya Cheburaev | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Workbench: SQL Editor | Severity: | S4 (Feature request) |
Version: | 5.2.33 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[13 May 2011 7:40]
Ilya Cheburaev
[13 May 2011 7:44]
Ilya Cheburaev
to reproduce this - just open 2 query windows - then swith to first and when switching - press on the plase where close (X) icon have to appear - it will close query windows - i've got this situation - after writing sql query i've switched to another one and when switched back i clicked on the area of X icon and it closed (even if X icond were hidden before click) it's better to add confirmation or to skip clicking on X area if X icon is hidden
[13 May 2011 7:45]
Ilya Cheburaev
Version is 5.2.33CE rev 7508
[13 May 2011 8:12]
Valeriy Kravchuk
I'd say this is a bug. Verified on Windows XP.
[16 May 2011 20:34]
Alfredo Kojima
Duplicate of bug #61037
[24 May 2011 0:10]
Alfredo Kojima
Not actually a duplicate of the above bug.
[2 Sep 2011 6:44]
Philip Olson
Fixed as of 5.2.35: + Under certain circumstances, closing a query window would not + prompt to save the query.
[7 Sep 2011 23:10]
Mike Reid
This bug still exists for me using 5.2.35-pre22 in OS X Lion (v10.7.1) :( Steps to repeat: 1. Open Workbench 5.2.35-pre22 2. Connect to database 3. Type something in the initial tab (e.g. SHOW PROCESSLIST ) 4. Create New Tab (Command + T) 5. Press the 1st tab's "close" button ("X" icon) ----- 6. Watch as the first tab gets closed with no confirmation, deleting your initial query.
[8 Sep 2011 0:40]
Alfredo Kojima
Mike The initial tab is a "scratch" tab, which is meant for temporary queries not meant to be saved. Once you save the contents of that tab, the tab becomes a normal script tab. Closing those will ask for confirmation, if there's something unsaved.
[12 Sep 2011 16:58]
Mike Reid
Alfredo, Thank you for the clarification on the "scratch tab". It's something I have never seen in any other query editor, and admittedly is quite unclear and somewhat confusing. IMHO, the goal should aim to prevent ANY loss of work (by default), but keeping the "scratch tab" around as an option for those who know they may never want/need their queries saved (accidental or not)...
[19 Sep 2011 22:18]
Mike Reid
One other observation (at least on OS X): I attempted closing a connection with multiple open tabs (10+ tabs), each of them full of SQL, but I did not receive a single prompt confirming if I wanted to close the tab vs. keeping it open to save the SQL. Coupled with this bug #60253 (http://bugs.mysql.com/bug.php?id=60253) this leads to the unfortunate side affect of trying to close the current tab you're on, but having the entire connection closed instead -- potentially losing any open tabs' SQL along with it...