The new invalid date tests added in #344575: Force MySQL to run in ANSI compatability mode. are failing on SQLite (3.4.2).
Insert with zero as month in date unexpectedly succeeded. Other database_test.test 2037 DatabaseInvalidDataTestCase->testInvalidDate()
Insert with zero as day in date unexpectedly succeeded. Other database_test.test 2050 DatabaseInvalidDataTestCase->testInvalidDate()
Insertion of zero date unexpectedly succeeded. Other database_test.test 2063 DatabaseInvalidDataTestCase->testInvalidDate() | Comment | File | Size | Author |
|---|---|---|---|
| #5 | 350545-remove-date-tests.patch | 2.39 KB | damien tournoud |
| #2 | 350545-remove-date-tests.patch | 3.76 KB | damien tournoud |
Comments
Comment #2
damien tournoud commentedI suggest we remove them. Neither date and time types nor their associated functions are not consistent across databases, and we can't support them correctly.
Comment #4
damien tournoud commentedTest bed glitch.
Comment #5
damien tournoud commentedI was heavy handed in the first patch. Only the date test has to be removed.
Comment #6
Crell commentedAfter discussion with Damien in IRC, we agreed that it's probably best to remove this test for now as it is not passable in SQLite. We should then separately look into how if at all we can support native date handling, for which we'd want to loop in KarenS and our other dating experts. So +1 to this patch. Visually it looks fine, as it's just changing a string and killing a test method, so commit as soon as the bot approves.
Comment #7
chx commentedMy heart bleeds for removing tests but this one is indeed broken. Go.
Comment #8
webchickFixed. :\