| Bug #1448 | date parsing fails, and fails to complain about it | ||
|---|---|---|---|
| Submitted: | 30 Sep 2003 13:49 | Modified: | 2 Dec 2003 11:02 |
| Reporter: | Dave Dyer | ||
| Status: | Closed | ||
| Category: | Server | Severity: | S3 (Non-critical) |
| Version: | 4.0.15 | OS: | Microsoft Windows (windows 2000) |
| Assigned to: | Dmitri Lenev | Target Version: | |
[30 Sep 2003 13:49]
Dave Dyer
[1 Oct 2003 5: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 6:04]
Dmitri 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 11:02]
Dmitri 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.
