to_char(FM9.9) bug fix

From: Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
To: pgsql-patches <pgsql-patches(at)postgreSQL(dot)org>
Subject: to_char(FM9.9) bug fix
Date: 2002-09-19 09:14:58
Message-ID: 20020919111458.A23671@zf.jcu.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches


The patch fix bug described in TODO:

* to_char(0,'FM999.99') returns a period, to_char(1,'FM999.99') does not

NOTE! Please, first apply Neil's patch with to_char() code clean up.

Thanks

Karel

test=# select to_char(0,'FM9.9');
to_char
---------
0.
(1 row)

test=# select to_char(1,'FM9.9');
to_char
---------
1.
(1 row)

--
Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
http://home.zf.jcu.cz/~zakkr/

C, PostgreSQL, PHP, WWW, http://docs.linux.cz, http://mape.jcu.cz

Attachment Content-Type Size
formatting-09192002.patch.gz application/x-gzip 447 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Zeugswetter Andreas SB SD 2002-09-19 09:21:50 Re: AIX compilation problems (was Re: Proposal ...)
Previous Message Zeugswetter Andreas SB SD 2002-09-19 08:40:46 Re: Proposal for resolving casting issues

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2002-09-19 16:18:56 Re: [GENERAL] Memory Errors...
Previous Message Karel Zak 2002-09-19 08:50:38 Re: to_char() code cleanup