BUG in date_part

From: "Alexandru COSTIN" <acostin(at)NOSPAMrds(dot)ro>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG in date_part
Date: 2000-10-06 07:03:07
Message-ID: LOeD5.13$Nr6.837@nreader1.kpnqwest.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hello,
I've discovered a bug in the date_part function. It returns 25 when
doing select date_part('day','2000-03-26'::date);
Anyway, this isn't happening if casting the date to timestamp
select date_part('day','2000-03-26'::timestamp);

Alexander

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message pgsql-bugs 2000-10-06 13:18:54 psql -P doesn't honor backslash escapes
Previous Message Tom Lane 2000-10-06 04:48:16 Re: PostgreSQL 7.0 beta 4: Error in Insert/Select