Re: Potential to_date(string, string) function malfunction

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Potential to_date(string, string) function malfunction
Дата
Msg-id 22301.1570549124@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Potential to_date(string, string) function malfunction  (Pavel Pleva <pavel.pleva@gmail.com>)
Ответы Re: Potential to_date(string, string) function malfunction  (Pavel Pleva <pavel.pleva@gmail.com>)
Список pgsql-bugs
Pavel Pleva <pavel.pleva@gmail.com> writes:
> I'd like to report you in my opinion weird behaviour of function 
> to_date(string, string). According to specs using format 'YYYY-MM-DD' in 
> months portion it should tolerate 01-12 and in days portion 01-31. But 
> if you try "SELECT to_date('2019-30-50', 'YYYY-MM-DD') instead of 
> throwing error it outputs "2021-07-23".

> This is output of 'SELECT version();' on our system: "PostgreSQL 9.4.23 
> on x86_64-unknown-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red 
> Hat 4.8.5-36), 64-bit"

PG v10 and later throw an error for this.

            regards, tom lane



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

Предыдущее
От: David Raymond
Дата:
Сообщение: RE: BUG #16031: Group by returns duplicate groups
Следующее
От: Andres Freund
Дата:
Сообщение: Re: BUG #16039: PANIC when activating replication slots in Postgres12.0 64bit under Windows