date_part returns wrong day for 1974-04-28

Поиск
Список
Период
Сортировка
От pgsql-bugs@postgresql.org
Тема date_part returns wrong day for 1974-04-28
Дата
Msg-id 200104091821.f39ILB669488@hub.org
обсуждение исходный текст
Список pgsql-bugs
Phil Steinke (lintec@clarkhall.ca) reports a bug with a severity of 2
The lower the number the more severe it is.

Short Description
date_part returns wrong day for 1974-04-28

Long Description
The date_part function is returning the wrong value for the date 1974-04-28.  It seems to work with other similar dates
(+/-a day, +/- a year). 

I'm using:
                            version
---------------------------------------------------------------
 PostgreSQL 7.0.3 on i686-pc-linux-gnu, compiled by gcc 2.95.2

Specifically, the postgresql_7.0.3-4 package from Debian unstable (sid), on a Pentium 100 with 32 megs of RAM (10MB
stillfree though). 

Feel free to contact me for more information.


Sample Code
select date_part('day', date('1974-04-28'));


No file was uploaded with this report

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

Предыдущее
От: Martin Olsson
Дата:
Сообщение: Comment bug in psql
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Comment bug in psql