Bug #7473 Cancelling 'Apply Changes' doesn't undo changes in table editor
Submitted: 22 Dec 2004 5:41 Modified: 25 Aug 2005 14:58
Reporter: Mark Junker Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Query Browser Severity:S2 (Serious)
Version:1.1.3 OS:Windows (WinXP Pro SP2)
Assigned to: Michael G. Zinner CPU Architecture:Any

[22 Dec 2004 5:41] Mark Junker
Description:
Hi,

when I press cancel when the statement I wanted to apply is shown, the "Apply Changes" button turns grey and the changes I did aren't un-done in the table editor.

Regards,
Mark

How to repeat:
1. Create a table with the following statement

CREATE TABLE `test`.`test6` (
  `test6_id` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
  `test7` INTEGER UNSIGNED NOT NULL,
  PRIMARY KEY(`test6_id`)
)
TYPE = InnoDB;

2. Open table editor for table
3. Rename column test7 to test7_x
4. Press "Apply Changes"
5. When the SQL statement is shown, press "Cancel"

As you can see now, the "Apply Changes" and "Discard Changes" buttons are greyed-out but the column name in the table editor window still shows "test7_x".

However, closing and re-opening the table editor shows the correct table definition.

The best solution would be that the "Apply Changes" and "Discard Changes" buttons should remain active because it seems that the changes will be applied after another change of the table ... just change the column "test7_x" from unsigned to signed and click "Apply Changes" again. You can see that the column rename will be done.
[22 Dec 2004 5:44] Mark Junker
I know that it is a duplicate for #9295 but I just wanted to show a repeatable way for showing this bug.
[22 Dec 2004 14:27] MySQL Verification Team
Verified with version 1.1.4
[25 Aug 2005 14:58] Vladimir Kolesnikov
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html