Re: [PATCHES] Fixes for MONEY type using locale

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: "D'Arcy J(dot)M(dot) Cain" <darcy(at)druid(dot)net>
Cc: PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: [PATCHES] Fixes for MONEY type using locale
Date: 2007-11-24 19:34:40
Message-ID: 200711241934.lAOJYeP09062@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

D'Arcy J.M. Cain wrote:
> On Sat, 24 Nov 2007 11:27:38 -0500 (EST)
> Bruce Momjian <bruce(at)momjian(dot)us> wrote:
> > I am confused about two other items with MONEY. First, why can't
> > anything but a string be cast to this type?
> >
> > test=> select 871234872319489323::money;
> > ERROR: cannot cast type bigint to money
> > LINE 1: select 871234872319489323::money;
> > ^
> > test=> select 871234872::money;
> > ERROR: cannot cast type integer to money
> > LINE 1: select 871234872::money;
> > ^
> > test=> select 87123487231.3::money;
> > ERROR: cannot cast type numeric to money
> > LINE 1: select 87123487231.3::money;
> > ^
>
> I agree. I wasn't the one that added the meta information.

OK, so the big question then is if we are un-depricating this data type,
does it have the behavior we want? (And the regression addition will be
helpful too.)

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://postgres.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2007-11-24 19:38:02 Re: [COMMITTERS] pgsql: update files for beta3
Previous Message D'Arcy J.M. Cain 2007-11-24 19:14:16 Re: Fixes for MONEY type using locale

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2007-11-24 20:07:44 Re: Problem with pg_dump -n schemaname
Previous Message D'Arcy J.M. Cain 2007-11-24 19:14:16 Re: Fixes for MONEY type using locale