Bug #53543 | Forward Engineering Create Script generation adding incorrect default values | ||
---|---|---|---|
Submitted: | 10 May 2010 16:33 | Modified: | 17 May 2010 12:26 |
Reporter: | Brian Pearson | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Workbench: Modeling | Severity: | S3 (Non-critical) |
Version: | 5.2.19 | OS: | MacOS |
Assigned to: | CPU Architecture: | Any | |
Tags: | "NOT NULL DEFAULT NULL", incorrect default values |
[10 May 2010 16:33]
Brian Pearson
[12 May 2010 11:57]
Johannes Taxacher
Brian, i cannot reproduce the problem. could you maybe provide a demo document (you can mark them as private if you want)
[17 May 2010 4:25]
Brian Pearson
Test MWB file, shows issue
Attachment: Test.mwb (application/octet-stream, text), 41.63 KiB.
[17 May 2010 4:25]
Brian Pearson
Create script generated by Forward Engineering.
Attachment: Test_Create_Script.sql (application/octet-stream, text), 1.92 KiB.
[17 May 2010 4:29]
Brian Pearson
Sorry for the delay, under the gun to get a project done. I have uploaded a sample file and the resulting forward engineering script that shows the issues namely "NOT NULL DEFAULT NULL" on columns in the create script. Hope this helps, BP
[17 May 2010 12:26]
Susanne Ebrecht
Many thanks for writing a bug report. This is not a bug. This is an expected server behaviour. Look here: http://dev.mysql.com/doc/refman/5.1/en/data-type-defaults.html " If a column definition includes no explicit DEFAULT value, MySQL determines the default value as follows: If the column can take NULL as a value, the column is defined with an explicit DEFAULT NULL clause. "