Re: BUG #2482: Wrong result in timestamp_in, timestamptz_in, date_in

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #2482: Wrong result in timestamp_in, timestamptz_in, date_in
Дата
Msg-id 13035.1150430710@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #2482: Wrong result in timestamp_in, timestamptz_in, date_in  ("Alexander Galler" <galler@kuzbass.net>)
Список pgsql-bugs
"Alexander Galler" <galler@kuzbass.net> writes:
> select '20.01.01 BC'::timestamp;
> Result:
> "2020-01-01 00:00:00 BC"
> I want "20-01-01 00:00:00 BC"

You can write
  select '0020.01.01 BC'::timestamp;

I agree it seems like a bug that the 'yy'->'20yy' conversion is applied
to BC dates.  The code appears to try to avoid that, but I think it's
confused in this case because 'BC' hasn't been scanned yet.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #2481: select from table's join with geometries doesn't go
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: BUG #2481: select from table's join with geometries doesn't go