Re: BUG #17794: dates with zero or negative years are not accepted

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #17794: dates with zero or negative years are not accepted
Дата
Msg-id 2155070.1676506090@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #17794: dates with zero or negative years are not accepted  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: BUG #17794: dates with zero or negative years are not accepted
Следующее
От: Aymen Rahal
Дата:
Сообщение: Create user mapping without password