Date coercion functionality tests #2973
Last updated: 2012-02-29 10:34:27 +0100
Date: 2012-01-14 13:39:42 +0100
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:9.0.1) Gecko/20100101 Firefox/9.0.1
The test file date_script_test.sql should be completed and tested.
Date: 2012-01-14 14:12:15 +0100
For complete details, see http//devmonetdborg/hg/MonetDB?cmd=changeset;node=fdc3b8b379f8
Date: 2012-01-14 14:16:14 +0100
For complete details, see http//devmonetdborg/hg/MonetDB?cmd=changeset;node=49f931f6754f
Date: 2012-01-20 14:59:38 +0100
Looking at the test and the code, I wonder what we think should happen.
The first test is
When given a format %y, the conversion function (strptime) expects a 2 digit year and returns a value for a year in the range 1969..2068. This means that in this case, the year returned is 2020 and the input string is not fully consumed.
Furthermore, the conversion function will set the day-of-month and month both to 0. Further processing in mtime will then refuse this date as invalid (month has to be in range 1..12, day-of-month in the appropriate range for the month), and will return a date_nil value.
Date: 2012-02-19 18:20:56 +0100
Appears to be fixed in the default branch (only) after changesets
Remains open/failing in the Dec2011 branch.
Date: 2012-02-19 18:47:07 +0100
Fixed (also) in Dec2011 by transplanting changeset 70dc90e1de2f from default to Dec2011:
The text was updated successfully, but these errors were encountered: