Bug #1635 | Problem inserting date with null values (SQL) | ||
---|---|---|---|
Submitted: | 23 Oct 2003 3:39 | Modified: | 23 Oct 2003 6:50 |
Reporter: | Sébastien Vanvelthem | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Command-line Clients | Severity: | S1 (Critical) |
Version: | 4.0.16 | OS: | Linux (Linux RH9) |
Assigned to: | CPU Architecture: | Any |
[23 Oct 2003 3:39]
Sébastien Vanvelthem
[23 Oct 2003 4:59]
Sébastien Vanvelthem
The same happens when I make a insert into news(title_3, text_3, date_maj_3, date_maj_1) values ('ddd', 'lk', '2003-10-23 12:00:14', NULL); date_maj_1 is always = 'NOW' and is never NULL. Why I've created the column nullable and it's default is NULL... Only happens to this fields (date_maj_2, date_maj_3, date_maj_4 works perfectly). A 'show columns from news' reports date_maj_1 NULLABLE with default : 'NULL' for all columns (except for primary key)
[23 Oct 2003 5:01]
Sébastien Vanvelthem
even 'NOW' when I make insert into news(date_maj_1) values (NULL); -> date_maj_1 = NOW()
[23 Oct 2003 6:50]
Alexander Keremidarski
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 This is exactly how TIMESTAMP should work. Please read manual before reporting bugs.