Bug #1448 | date parsing fails, and fails to complain about it | ||
---|---|---|---|
Submitted: | 30 Sep 2003 11:49 | Modified: | 2 Dec 2003 10:02 |
Reporter: | Dave Dyer | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 4.0.15 | OS: | Windows (windows 2000) |
Assigned to: | Dmitry Lenev | CPU Architecture: | Any |
[30 Sep 2003 11:49]
Dave Dyer
[1 Oct 2003 3:41]
Alexander Keremidarski
You are right. At least one of results must be assumed wrong. Both now<20030930240000; and now<20030929240000; should either succeed or failed. As you said there are better ways to seek for same result, but this doesn't make current befaviour correct :)
[21 Oct 2003 4:04]
Dmitry Lenev
Manual says that numbers or strings representing illegal timestamps which is converted to timestamp value should be converted to special 0 value. The same should happen when you are comparing number or string with timestamp. So both of your queries should return empty sets.
[2 Dec 2003 10:02]
Dmitry Lenev
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 bugfix, yourself. More information about accessing the source trees is available at http://www.mysql.com/doc/en/Installing_source_tree.html ChangeSet 1.1579.2.1 2003/12/02 20:25:45 dlenev@mysql.com Fix for Bug #1448 "Date parsing fails, and fails to complain about it". Now numbers representing illegal timestamps are converted to 0 value if they are stored as timestamp or datetime. This behaviour is consistent with manual and with behaviour of string -> timestamp conversion.