Re: Missing operator for numeric comparison

Lists: pgsql-hackers
From: "Oliver Elphick" <olly(at)lfix(dot)co(dot)uk>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Missing operator for numeric comparison
Date: 2001-03-22 16:34:56
Message-ID: 200103221634.f2MGYuO08325@linda.lfix.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Is it possible to fix this before RC1?

bray=# \d price
Table "price"
Attribute | Type | Modifier
-------------+-----------------------+----------
product | character varying(10) | not null
cost | numeric(12,2) | not null
home | numeric(12,2) | not null
export | numeric(12,2) | not null
next_home | numeric(12,2) |
next_export | numeric(12,2) |
Index: price_pkey

bray=# select * from price where home = 1.50;
ERROR: Unable to identify an operator '=' for types 'numeric' and 'float8'
You will have to retype this query using an explicit cast

--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight http://www.lfix.co.uk/oliver
PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47 6B 7E 39 CC 56 E4 C1 47
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"Every good gift and every perfect gift is from above,
coming down from the Father of the heavenly lights,
who does not change like shifting shadows."
James 1:17


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Oliver Elphick" <olly(at)lfix(dot)co(dot)uk>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Missing operator for numeric comparison
Date: 2001-03-22 17:06:50
Message-ID: 10131.985280810@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

"Oliver Elphick" <olly(at)lfix(dot)co(dot)uk> writes:
> Is it possible to fix this before RC1?

If it were an easily fixed thing, it would have been fixed long ago.

regards, tom lane