From: jwieck@debis.com
To: pgsql-sql@postgreSQL.org
Cc: marciom@conectiva.com.br
Subject: Re: [SQL] question about money type
Date: Wed, 12 May 1999 17:39:41 +0200 (MET DST)
Message-ID: <m10hb6j-000EBbC@orion.SAPserv.Hamburg.dsh.de> (raw)
In-Reply-To: <m10hahA-0000bIC@druid.net>
D'Arcy J.M. Cain wrote:
>
> Thus spake Marcio Macedo
> > Hi all,
> >
> > when I do a SELECT in a money field, it returns the folowing :
> >
> > R$2.244,00
> >
> > what is correct , according with my LOCALE settings,
> > is there a way to format this result to
> >
> > 2.244,00 (without the "R$") ?
>
> Not really. There was once some discussion about removing the currency
> string altogether on output (I even sent in patches) but it was decided
> to keep it in because no one will be using the MONEY type eventually.
> Everyone is being urged to use the NUMERIC type.
I really wanted to add TO_CHAR() function for NUMERIC before
release. But there are more important items in the rewrite
system I have to fix first.
Since TO_CHAR() cannot have any side effects I could add it
until the last hour before Marc starts "closed shop".
Jan
--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#======================================== jwieck@debis.com (Jan Wieck) #
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: jwieck@debis.com, marciom@conectiva.com.br
Subject: Re: [SQL] question about money type
In-Reply-To: <m10hb6j-000EBbC@orion.SAPserv.Hamburg.dsh.de>
References: <m10hahA-0000bIC@druid.net> <m10hb6j-000EBbC@orion.SAPserv.Hamburg.dsh.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox