Re: [PATCHES] to_char(FM9.9) bug fix

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>, PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PATCHES] to_char(FM9.9) bug fix
Date: 2002-09-20 21:32:18
Message-ID: 3571.1032557538@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Peter Eisentraut <peter_e(at)gmx(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2002-09-20 21:59:42 Re: Lyris looking to help fix PostgresSQL crashing problems
Previous Message Tom Lane 2002-09-20 21:23:32 Re: Getting acces to MVCC version number

Browse pgsql-patches by date

  From Date Subject
Next Message Nigel J. Andrews 2002-09-20 22:18:00 Re: Memory Errors...
Previous Message Alvaro Herrera 2002-09-20 20:37:12 Re: DROP COLUMN misbehaviour with multiple inheritance