Bug #53918 | Change Field to Not Null does not work | ||
---|---|---|---|
Submitted: | 23 May 2010 0:06 | Modified: | 11 Jun 2010 15:44 |
Reporter: | Jesse Castleberry | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Workbench: SQL Editor | Severity: | S3 (Non-critical) |
Version: | 5.2.21 RC | OS: | Windows (7) |
Assigned to: | Alexander Musienko | CPU Architecture: | Any |
[23 May 2010 0:06]
Jesse Castleberry
[23 May 2010 16:41]
Valeriy Kravchuk
Indeed, the following code is generated: ALTER TABLE `test`.`tnull` CHANGE COLUMN `c2` `c2` INT(11) NOT NULL DEFAULT NULL ; Workbench should do better job and take into account that NULL default is impossible for NOT NULL column.
[9 Jun 2010 19:49]
Johannes Taxacher
fix confirmed in repository
[11 Jun 2010 15:44]
Tony Bedford
An entry has been added to the 5.2.23 changelog: In the Alter Table dialog of the SQL Editor, if an attempt was made to set the NN flag for a column that did not have it set, an error was generated when the changes are applied.