Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-bugs by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group