Обсуждение: Missing operator for numeric comparison

Поиск
Список
Период
Сортировка

Missing operator for numeric comparison

От
"Oliver Elphick"
Дата:
Is it possible to fix this before RC1?

bray=# \d price                Table "price" Attribute  |         Type          | Modifier 
-------------+-----------------------+----------product     | character varying(10) | not nullcost        |
numeric(12,2)        | not nullhome        | numeric(12,2)         | not nullexport      | numeric(12,2)         | not
nullnext_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
explicitcast
 

-- 
Oliver Elphick                                Oliver.Elphick@lfix.co.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
theFather of the heavenly lights,     who does not change like shifting shadows."
James1:17 
 




Re: Missing operator for numeric comparison

От
Tom Lane
Дата:
"Oliver Elphick" <olly@lfix.co.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