Bug #62464 | On Delete and On Update set to "SET NULL" conflict with "NOT NULL" | ||
---|---|---|---|
Submitted: | 17 Sep 2011 16:32 | Modified: | 8 Feb 2014 1:26 |
Reporter: | Artur Stępień | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Workbench: Modeling | Severity: | S3 (Non-critical) |
Version: | 5.2.34, 5.2.35 | OS: | Any (Windows 7, Mac OS X) |
Assigned to: | CPU Architecture: | Any | |
Tags: | errno 150, ondelete, onupdate |
[17 Sep 2011 16:32]
Artur Stępień
[24 Sep 2011 11:07]
Valeriy Kravchuk
Thank you for the bug report (yes, I think this is actually a bug). Verified with recent 5.2.35 on Mac OS X also.
[8 Feb 2014 1:26]
Philip Olson
Fixed as of the upcoming MySQL Workbench 6.1.2 release, and here's the changelog entry: When setting "On Delete" and "On Update" to "SET NULL" on Foreign Key fields that were marked as "NOT NULL", a generic "ERROR: Error 1005: Can't create table" error was emitted. The generated error is now more specific. Thank you for the bug report.