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()	

Comments

damien tournoud’s picture

Status: Active » Needs review
StatusFileSize
new3.76 KB

I 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.

Status: Needs review » Needs work

The last submitted patch failed testing.

damien tournoud’s picture

Status: Needs work » Needs review

Test bed glitch.

damien tournoud’s picture

StatusFileSize
new2.39 KB

I was heavy handed in the first patch. Only the date test has to be removed.

Crell’s picture

After 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.

chx’s picture

Status: Needs review » Reviewed & tested by the community

My heart bleeds for removing tests but this one is indeed broken. Go.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Fixed. :\

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.