Re: [HACKERS] to_char and Roman Numeral (RN) bug

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
Cc: "Command Prompt, Inc(dot)" <pgsql-hackers(at)commandprompt(dot)com>, pgsql-patches <pgsql-patches(at)postgreSQL(dot)org>
Subject: Re: [HACKERS] to_char and Roman Numeral (RN) bug
Date: 2001-09-10 14:17:02
Message-ID: 200109101417.f8AEH2J16535@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches


Your patch has been added to the PostgreSQL unapplied patches list at:

http://candle.pha.pa.us/cgi-bin/pgpatches

I will try to apply it within the next 48 hours.

> On Fri, Sep 07, 2001 at 04:23:08PM -0400, Bruce Momjian wrote:
> >
> > I have checked this in CVS and it is working fine. Karel, have you
> > fixed this? I can't find a place where I have applied a fix for this.
>
> It is not fixed and I doubt that it is working fine in current CVS. The
> bugfix is in the attached patch. Please apply it. Thanks.
>
> Output must be:
>
> test=# SELECT to_char(485, 'RN');
> to_char
> -----------------
> CDLXXXV
> (1 row)
>
> test=# SELECT to_char(485, 'FMRN');
> to_char
> ---------
> CDLXXXV
> (1 row)
>
> test=# SELECT to_char(1000, 'RN');
> to_char
> -----------------
> M
> (1 row)
>
>
> test=# SELECT to_char(7.2, '"Welcome to"9.9 "release! :-)"');
> to_char
> -----------------------------
> Welcome to 7.2 release! :-)
> (1 row)
>
>
> Thanks to jlx(at)commandprompt(dot)com for this bug report!
>
> Karel
>
> --
> 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, skipping... ]

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2001-09-10 14:24:20 x = NULL
Previous Message Karel Zak 2001-09-10 12:48:46 Re: [HACKERS] to_char and Roman Numeral (RN) bug

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2001-09-10 14:23:51 Re: Patch to add bytea support to JDBC
Previous Message Karel Zak 2001-09-10 12:48:46 Re: [HACKERS] to_char and Roman Numeral (RN) bug