Re: No migration path for MONEY

From: Darcy Buskermolen <darcy(at)wavefire(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: No migration path for MONEY
Date: 2003-01-29 19:12:00
Message-ID: 200301291112.00509.darcy@wavefire.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Tom you are correct here (like usual), sorry for the wasted thread and time
regarding functions that I remembered being there but infact were not.

On Wednesday 29 January 2003 10:56, Tom Lane wrote:
> Darcy Buskermolen <darcy(at)wavefire(dot)com> writes:
> > Sorry my mistake on versions.
> > darcy=> SELECT '1.0'::MONEY::FLOAT;
> > ?column?
> > --------
> > 1
> > (1 row)
> > darcy=> select version();
> > version
> > --------------------------------------------------------------------
> > PostgreSQL 6.5.2 on i386-unknown-freebsd3.2, compiled by gcc 2.7.2.1
> > (1 row)
>
> I don't have a 6.5 system around to test anymore, but my recollection is
> that back then, constructs like 'literal'::foo::bar were collapsed into
> 'literal'::bar --- so the above doesn't prove 6.5 could actually convert
> money into float. What happens if you take a money column and try to
> coerce it, ie "SELECT moneycol::float FROM mytable" ?
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster

--
Darcy Buskermolen
Wavefire Technologies Corp.
ph: 250.717.0200
fx: 250.763.1759
http://www.wavefire.com

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message pgsql-bugs 2003-01-29 21:23:40 Bug #889: PQconnectdb SEGV
Previous Message Tom Lane 2003-01-29 18:56:50 Re: No migration path for MONEY