Re: to_date()/to_timestamp() silently accept month=0 and day=0 - Mailing list pgsql-bugs

From Michael Paquier
Subject Re: to_date()/to_timestamp() silently accept month=0 and day=0
Date
Msg-id aeqZukF8X29eWtqy@paquier.xyz
Whole thread
In response to Re: to_date()/to_timestamp() silently accept month=0 and day=0  (Ayush Tiwari <ayushtiwari.slg01@gmail.com>)
Responses Re: to_date()/to_timestamp() silently accept month=0 and day=0
List pgsql-bugs
On Thu, Apr 23, 2026 at 10:06:41PM +0530, Ayush Tiwari wrote:
> If we are not going to change the behaviour, imo, we should
> atleast add a test case to depict this scenario and comment
> that says this is expected behaviour according to the community.

Yes, we could close the gap with some tests, at least.
--
Michael

Attachment

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg_dumpall bug exit code 0 with fatal
Next
From: Michael Paquier
Date:
Subject: Re: BUG #19457: RE: pgp_sym_encrypt silently accepts non-FIPS ciphers (bf, cast5, 3des) when OpenSSL is in FIPS mod