Re: Bug in function to_char() !!

From: Dirk Försterling <r(at)zorbla(dot)de>
To: Najib Abi Fadel <nabifadel(at)usj(dot)edu(dot)lb>
Cc: generalpost <pgsql-general(at)postgresql(dot)org>
Subject: Re: Bug in function to_char() !!
Date: 2004-07-01 07:53:34
Message-ID: 40E3C2FE.4060403@zorbla.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Najib Abi Fadel wrote:
> Hi, i am using PostgreSQL 7.3.2
>
> there's a bug for the date '2005-03-27' !!!!!!!!!!!!!!!!!!!!!!!!!!!

I think you should replace or clean your keyboard. At least one key
seems to be sticky.

> SELECT to_char('2005-03-27'::date,'DD/MM/YYYY');
> to_char
> ------------
> 26/03/2005
> (1 row)

No problem with 7.2.1 and 7.4.1. (don't have a 7.3.2 around).
Both work correctly:

dirk=> SELECT to_char('2005-03-27'::date,'DD/MM/YYYY');
to_char
------------
27/03/2005
(1 row)

--
D i r k F "o r s t e r l i n g
r(at)zorbla(dot)de http://r.zorbla.de/
-------------
"A radioactive cat has eighteen half-lives."

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message vinny 2004-07-01 08:17:50 Re: backups
Previous Message Karel Zak 2004-07-01 07:49:15 Re: Bug in function to_char() !!