Re: [PATCHES] to_char(FM9.9) bug fix - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [PATCHES] to_char(FM9.9) bug fix
Date
Msg-id 3571.1032557538@sss.pgh.pa.us
Whole thread Raw
In response to Re: [PATCHES] to_char(FM9.9) bug fix  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> Karel Zak writes:
>> test=# select to_char(0,'FM9.9');
>> to_char
>> ---------
>> 0.
>> (1 row)
>> 
>> test=# select to_char(1,'FM9.9');
>> to_char
>> ---------
>> 1.
>> (1 row)

> I find this highly bizzare.

No doubt, but it's what Oracle does (see tests posted to the lists by
several people) and to_char exists to duplicate Oracle behavior.  This
is hardly the silliest aspect of to_char's definition, IMHO ...
        regards, tom lane


pgsql-hackers by date:

Previous
From: John Buckman
Date:
Subject: Lyris looking to help fix PostgresSQL crashing problems
Next
From: Tom Lane
Date:
Subject: Re: Lyris looking to help fix PostgresSQL crashing problems