Re: Bug #952: real type in WHERE - Mailing list pgsql-bugs

From hvicha
Subject Re: Bug #952: real type in WHERE
Date
Msg-id 20030423105549.63f2755a.hvicha@mail.ru
Whole thread Raw
In response to Re: Bug #952: real type in WHERE  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
On Tue, 22 Apr 2003 11:25:34 -0400
Tom Lane <tgl@sss.pgh.pa.us> wrote:

> pgsql-bugs@postgresql.org writes:
> > victest=# SELECT * FROM t WHERE r=1.1;
>
> The 1.1 is taken as a float8 constant.  There is no float4 value that is
> exactly equal to 1.1::float8.
>
 Yes, I see:
victest=# select 1.1::float4 = 1.1::float8;
 ?column?
----------
 f
(1 row)

;-/

Regards, Vic

pgsql-bugs by date:

Previous
From: Evgeny Duzhakow
Date:
Subject: 7.3.2 indexes in PL/PgSQL
Next
From: "Axel Spallek"
Date:
Subject: Select Statements freeze.