Bug #48896 | Changing a primary key column to nullable should report an error | ||
---|---|---|---|
Submitted: | 19 Nov 2009 9:53 | Modified: | 19 Nov 2009 13:59 |
Reporter: | zohar aharoni | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Errors | Severity: | S3 (Non-critical) |
Version: | 5.1.37 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[19 Nov 2009 9:53]
zohar aharoni
[19 Nov 2009 13:59]
MySQL Verification Team
Thank you for the bug report. This is documented behaviour: http://dev.mysql.com/doc/refman/5.1/en/create-table.html "A PRIMARY KEY is a unique index where all key columns must be defined as NOT NULL. If they are not explicitly declared as NOT NULL, MySQL declares them so implicitly (and silently). A table ......"