Re: timestamp/date bug

From: Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
To: Juan Flynn <juan(at)netsoc(dot)tcd(dot)ie>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: timestamp/date bug
Date: 2001-02-05 16:22:26
Message-ID: Pine.LNX.3.96.1010205171935.29540G-100000@ara.zf.jcu.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


On Sun, 4 Feb 2001, Juan Flynn wrote:

> I've come across an odd bug in Postgres 7 (7.0.3 I think) that's probably
> best explained with an example:

> SELECT to_char(timestamp '23-Mar-2000' + 3, 'Mon DD');
> to_char
> ---------
> Mar 25
> (1 row)

in 7.1:

test=# SELECT to_char(timestamp '23-Mar-2000' + 3, 'Mon DD');
to_char
---------
Mar 26
(1 row)

test=# select timestamp '23-Mar-2000' + 3;
?column?
------------
2000-03-26
(1 row)

It's probably already fixed bug with timezones and "magic" dates :-)

Karel

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2001-02-05 16:22:35 Re: timestamp/date bug
Previous Message Karel Zak 2001-02-05 16:06:16 Re: some info about char(1)