Bug #10550 | not null not working | ||
---|---|---|---|
Submitted: | 11 May 2005 12:16 | Modified: | 11 May 2005 17:11 |
Reporter: | raj k | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | mysql 5.0.3 | OS: | Windows (windows xp) |
Assigned to: | CPU Architecture: | Any |
[11 May 2005 12:16]
raj k
[11 May 2005 17:11]
MySQL Verification Team
Notice that 0 isn't NULL, then according the Manual: http://dev.mysql.com/doc/mysql/en/create-table.html ....... Prior to MySQL 5.0.2, if a column definition includes no explicit DEFAULT value, MySQL determines the default value as follows: If the column can take NULL as a value, the column is defined with an explicit DEFAULT NULL clause. If the column cannot take NULL as the value, MySQL defines the column with an explicit DEFAULT clause, using the implicit default value for the column data type. Implicit defaults are defined as follows: * For numeric types other than those declared with the AUTO_INCREMENT attribute, the default is 0. For an AUTO_INCREMENT column, the default value is the next value in the sequence. ......