Bug #66987 | Missing error message / warning when trying to create a primary key with NULL va | ||
---|---|---|---|
Submitted: | 27 Sep 2012 10:46 | Modified: | 14 Nov 2013 0:00 |
Reporter: | Joffrey MICHAIE | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: DDL | Severity: | S3 (Non-critical) |
Version: | All | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | compound primary key null |
[27 Sep 2012 10:46]
Joffrey MICHAIE
[27 Sep 2012 14:36]
MySQL Verification Team
I suppose this falls into a similar category of mysql accepting syntax for one thing but doing another.. e.g. http://bugs.mysql.com/bug.php?id=47771
[6 Dec 2012 20:11]
Sveta Smirnova
Thank you for the report. Verified as described: warning for such CREATE TABLE statements would be nice.
[14 Nov 2013 0:00]
Paul DuBois
Noted in 5.7.3 changelog. Columns in a PRIMARY KEY must be NOT NULL, but primary key columns that were defined to permit NULL were not rejected. Now such column definitions produce an error.