Re: BUG #17794: dates with zero or negative years are not accepted - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #17794: dates with zero or negative years are not accepted
Date
Msg-id 2155070.1676506090@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #17794: dates with zero or negative years are not accepted  ("David G. Johnston" <david.g.johnston@gmail.com>)
List pgsql-bugs
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> We just stopped doing this "shift-by-one" in probably the one arguable case
> where doing so made sense.
> https://github.com/postgres/postgres/commit/489c9c3407cbfd473c2f8d7863ffaaf6d2e8fcf8

Hmm, yeah, we should have suggested to_date as an alternative.  Its use
of a format string makes the parsing problem more tractable.

            regards, tom lane



pgsql-bugs by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: BUG #17794: dates with zero or negative years are not accepted
Next
From: Aymen Rahal
Date:
Subject: Create user mapping without password