Bug #20532 | setting DEFAULT value in CREATE TABLE sql not working | ||
---|---|---|---|
Submitted: | 19 Jun 2006 11:36 | Modified: | 19 Jun 2006 12:43 |
Reporter: | dodo | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 5.0.22 | OS: | Windows (winxp HOME) |
Assigned to: | CPU Architecture: | Any |
[19 Jun 2006 11:36]
dodo
[19 Jun 2006 12:43]
MySQL Verification Team
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.mysql.com/documentation/ and the instructions on how to report a bug at http://bugs.mysql.com/how-to-report.php Additional info: mysql> insert into category(category_id, parent_category_id, name, description, -> created_time) values (null, null , "Junk", "trash", null); ERROR 1048 (23000): Column 'parent_category_id' cannot be null You are trying to insert a NULL value for a column defined NOT NULL: parent_category_id int(10) NOT NULL DEFAULT '0', insert into category(category_id, parent_category_id, name, description, created_time) values (null, null , "Junk", "trash", null); ^^^^