date_part returns wrong day for 1974-04-28 - Mailing list pgsql-bugs

From pgsql-bugs@postgresql.org
Subject date_part returns wrong day for 1974-04-28
Date
Msg-id 200104091821.f39ILB669488@hub.org
Whole thread Raw
List 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 by date:

Previous
From: Martin Olsson
Date:
Subject: Comment bug in psql
Next
From: Bruce Momjian
Date:
Subject: Re: Comment bug in psql