Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-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: formatting-09192002.patch.gz
Description: application/x-gzip (447 bytes)

Responses

pgsql-hackers by date

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

pgsql-patches by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group