Bug #51481 | Generated SQL doesn't seem to account for scripts that have been applied | ||
---|---|---|---|
Submitted: | 25 Feb 2010 4:45 | Modified: | 26 Mar 2010 14:17 |
Reporter: | Will ber | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Workbench: SQL Editor | Severity: | S3 (Non-critical) |
Version: | 5.2.15, 5.2.16 | OS: | Any (xp sp3, Linux) |
Assigned to: | Sergei Tkachenko | CPU Architecture: | Any |
Tags: | ALTER TABLE, Apply SQL |
[25 Feb 2010 4:45]
Will ber
[26 Feb 2010 7:56]
Susanne Ebrecht
Many thanks for writing a bug report. Verified as described. SQL Error 1060: Duplicate column name 'tcol' SQL: ALTER TABLE `bla`.`t` ADD COLUMN `tcol` VARCHAR(45) NOT NULL AFTER `b2`
[23 Mar 2010 10:28]
Johannes Taxacher
fix in repository confirmed
[26 Mar 2010 14:17]
Tony Bedford
An entry has been added to the 5.2.17 changelog: In the Alter Table dialog of the SQL Editor, when a table was edited and changes applied, if subsequent changes were made and applied an error would result, as MySQL Workbench attempted to use ADD COLUMN rather than CHANGE COLUMN.