Bug #32972 | WB doesn't handle default-Value for columns | ||
---|---|---|---|
Submitted: | 4 Dec 2007 18:06 | Modified: | 10 Jul 2008 12:55 |
Reporter: | Johannes Taxacher | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Workbench | Severity: | S4 (Feature request) |
Version: | OS: | Any | |
Assigned to: | Maksym Yehorov | CPU Architecture: | Any |
[4 Dec 2007 18:06]
Johannes Taxacher
[14 Apr 2008 15:53]
Alfredo Kojima
This should be implemented as a validation for columns, looking for NOT NULL DEFAULT NULL columns.
[21 May 2008 17:07]
Johannes Taxacher
fixed (tested in bzr rev 3106)
[10 Jul 2008 12:55]
Tony Bedford
An entry has been added to the 5.0.21 changelog: When making a column a primary key and this column has NULL as default value, this default value is not changed. When the table gets synchronized back to the database Workbench creates a statement such as: ALTER TABLE `test_defhan`.`table1` CHANGE COLUMN `id_table1` `id_table1` INT(11) NOT NULL DEFAULT NULL, ... This leads to an error: Error 1067: Invalid default value for 'id_table1'