From: | pgsql-bugs(at)postgresql(dot)org |
---|---|
To: | pgsql-bugs(at)postgresql(dot)org |
Subject: | date_part returns wrong day for 1974-04-28 |
Date: | 2001-04-09 18:21:11 |
Message-ID: | 200104091821.f39ILB669488@hub.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Phil Steinke (lintec(at)clarkhall(dot)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 still free 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
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Lockhart | 2001-04-09 20:40:47 | Re: date_part returns wrong day for 1974-04-28 |
Previous Message | Bruce Momjian | 2001-04-09 17:51:12 | Re: Comment bug in psql |