Re: [HACKERS] Inconsistencies in from_char_parse_int_len()

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] Inconsistencies in from_char_parse_int_len()
Дата
Msg-id 18481.1501534673@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [HACKERS] Inconsistencies in from_char_parse_int_len()  (Douglas Doole <dougdoole@gmail.com>)
Список pgsql-hackers
Douglas Doole <dougdoole@gmail.com> writes:
> I was playing with TO_TIMESTAMP() and I noticed a weird result:
> postgres=# select to_timestamp('20170-07-24 21:59:57.12345678', 'yyyy-mm-dd
> hh24:mi:ss.us');
>           to_timestamp
> --------------------------------
>  20170-07-24 22:00:09.345678+00
> (1 row)

FWIW, we already tightened that up in v10:

regression=#  select to_timestamp('20170-07-24 21:59:57.12345678', 'yyyy-mm-dd hh24:mi:ss.us');
ERROR:  date/time field value out of range: "20170-07-24 21:59:57.12345678"

There may well be some discrepancies left.
        regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] PL_stashcache, or, what's our minimum Perl version?
Следующее
От: Andres Freund
Дата:
Сообщение: Re: [HACKERS] POC: Sharing record typmods between backends