| From: | "Pavlo Baron" <pb(at)pbit(dot)org> |
|---|---|
| To: | <thomas(at)pgsql(dot)com> |
| Cc: | "PostgreSQL-development" <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: TODO question |
| Date: | 2001-12-27 21:50:21 |
| Message-ID: | 014f01c18f20$7edc8070$6500a8c0@bw1 |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Thomas Lockhart:
> > This TODO-item "SELECT col FROM tab WHERE numeric_col = 10.1 fails,
requires
> > quotes" - is it already fixed? ...
>
> thomas=# create table t3 (n numeric);
> CREATE
> thomas=# select * from t3 where n = 10.1;
> ERROR: Unable to identify an operator '=' for types 'numeric' and
> 'double precision'
> You will have to retype this query using an explicit cast
> thomas=# select * from t3 where n = '10.1';
> n
> ---
> (0 rows)
oops, I should clean my eyeballs: my test case was:
create table t3 (n double precision);
select * from t3 where n = 10.1;
n
---
(0 rows)
the problem lies in the numeric field - let's see, if I find out where to
fix it
rgds
Pavlo Baron
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Vince Vielhaber | 2001-12-27 22:21:22 | Re: TODO question |
| Previous Message | Thomas Lockhart | 2001-12-27 21:32:18 | Re: TODO question |