Bug #53877 | Table with columns set at NOT NULL accepting NULL values | ||
---|---|---|---|
Submitted: | 21 May 2010 11:02 | Modified: | 21 May 2010 11:21 |
Reporter: | Allan Hart | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S1 (Critical) |
Version: | 5.1.47 | OS: | MacOS (Snow Leopard) |
Assigned to: | CPU Architecture: | Any |
[21 May 2010 11:02]
Allan Hart
[21 May 2010 11:21]
Giuseppe Maxia
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://dev.mysql.com/doc/refman/5.1/en/insert.html and the instructions on how to report a bug at http://bugs.mysql.com/how-to-report.php Specifically, if you set SQL_MODE='STRICT_ALL_TABLES' an error will be issued for not null values inserted.
[21 May 2010 11:23]
Giuseppe Maxia
I mean an error will be issued when you enter a null value in a non null field without a default value