Bug #5295 Table editor does not update when you cancel an 'Apply Changes'
Submitted: 30 Aug 2004 19:19 Modified: 31 Aug 2004 7:23
Reporter: Mike Hillyer Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Query Browser Severity:S3 (Non-critical)
Version:1.0.6.2 OS:Windows (Windows XP SP2)
Assigned to: Ulrich Bayer CPU Architecture:Any

[30 Aug 2004 19:19] Mike Hillyer
Description:
Ok, so lets say you choose a column in the editor and choose the 'Delete Table Columns' option (which would probably be better named 'Drop Column(s)'). The column is removed from the column list, and all is well. If you click 'Discard Changes' the column is returned to the list.

But lets say you hit 'Apply Changes', and then when shown the potential changes you click 'Cancel' instead of OK. While the Apply and Discard buttons become inactive, and no changes occur, the column list does not revert to its original form. The column is still missing off the list and cannot be restored without closing and re-opening the table editor.

How to repeat:
Try the steps in the description.

Suggested fix:
Refresh the table editor if you detect the user cancelled the changes.
[31 Aug 2004 7:23] MySQL Verification Team
At my side closing and re-opening the table editor, the column was
showed in the columns list. BTW I tested with a table with just 2
columns one int and another char column.