Re: to_char(date,'YYYYMMDD') bug

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: to_char(date,'YYYYMMDD') bug
Дата
Msg-id 3827.1036038586@sss.pgh.pa.us
обсуждение исходный текст
Ответ на to_char(date,'YYYYMMDD') bug  (Jord Tanner <jord@indygecko.com>)
Список pgsql-bugs
Jord Tanner <jord@indygecko.com> writes:
> It looks like to_char is unable to convert dates that fall in the range
> of 01/01/1902 to 12/31/1969 (see below). I am running the Postgresql RPM
> that is distributed with RH 8.0 (7.2.2.1). PGDATESTYLE is set to "SQL".

You need PG 7.2.3; it works around the glibc boys' decision to
deliberately break mktime() for pre-1970 dates.  If you're not happy
about that (and you shouldn't be), complain to them.

            regards, tom lane

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

Предыдущее
От: Jord Tanner
Дата:
Сообщение: to_char(date,'YYYYMMDD') bug
Следующее
От: Mats Lofkvist
Дата:
Сообщение: 7.3b1 panic in vacuum