Re: Re: Bug in date_part()

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Re: Bug in date_part()
Дата
Msg-id 22643.979783654@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Bug in date_part()  (Thomas Lockhart <lockhart@alumni.caltech.edu>)
Ответы Re: Re: Bug in date_part()  (phil@Stimpy.netroedge.com)
Список pgsql-bugs
Thomas Lockhart <lockhart@alumni.caltech.edu> writes:
>> Query to reproduce the bug (7.0.3):
>> edge=# select date_part('dow','4/1/2001'::date)::int4;
>> ----------
>> 6

> I'm not seeing this on my 7.0.2 RPM installation, or on my from-cvs
> current sources (dow for April 1 comes up as zero, as you would expect).

I get the right answer from current sources, and the wrong one on 7.0.2.
It's ye olde date-to-timestamp-off-an-hour-at-DST-boundary problem.
Are you not running in a USA timezone?

            regards, tom lane

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

Предыдущее
От: Jason Schroeder
Дата:
Сообщение: regression failure: random
Следующее
От: Thomas Lockhart
Дата:
Сообщение: Re: Bug in date_part()