Bug #21789 | DATETIME with 0000-00-00 11:22:33 should be invalid, but is accepted | ||
---|---|---|---|
Submitted: | 22 Aug 2006 18:19 | Modified: | 14 Dec 2006 4:47 |
Reporter: | Timothy Smith | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Data Types | Severity: | S3 (Non-critical) |
Version: | 4.1, 5.0, 5.1 | OS: | Any (all) |
Assigned to: | Ramil Kalimullin | CPU Architecture: | Any |
[22 Aug 2006 18:19]
Timothy Smith
[4 Oct 2006 11:01]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/13065 ChangeSet@1.2543, 2006-10-04 16:00:44+05:00, ramil@mysql.com +2 -0 Fix for bug #21789: DATETIME with 0000-00-00 11:22:33 should be invalid, but is accepted Reject '0000-00-00 01:01:01' dates.
[22 Nov 2006 14:43]
Peter Gulutzan
I hope this is fixed too: mysql> select addtime('0000-00-00 00:00:00', '00:00:00'); +--------------------------------------------+ | addtime('0000-00-00 00:00:00', '00:00:00') | +--------------------------------------------+ | NULL | +--------------------------------------------+ 1 row in set (0.00 sec)
[14 Dec 2006 4:47]
Jon Stephens
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release. If necessary, you can access the source repository and build the latest available version, including the bug fix. More information about accessing the source trees is available at http://dev.mysql.com/doc/en/installing-source.html Documented bugfix for 5.0.32 and 5.1.15.