Re: to_date()/to_timestamp() silently accept month=0 and day=0

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: to_date()/to_timestamp() silently accept month=0 and day=0
Дата
Msg-id ae6VJ-FllaLg92xw@paquier.xyz
обсуждение
Ответ на Re: to_date()/to_timestamp() silently accept month=0 and day=0  (Peter Eisentraut <peter@eisentraut.org>)
Список pgsql-bugs
On Fri, Apr 24, 2026 at 05:41:50PM +0200, Peter Eisentraut wrote:
> Complaints from whom?  Oracle rejects these, and PostgreSQL generally also
> rejects these dates/times in other contexts.  I think this should be
> rejected.

From folks who hypothetically rely on the existing zeroed inputs.  :)
Perhaps it's a far-fetched argument, and just to be clear I would not
really object to a change of behavior on HEAD for v20, just to see
where it goes in 2027.
--
Michael

Вложения

В списке pgsql-bugs по дате отправления: