Re: Comparing Numeric and Double Precision (float8).. - Mailing list pgsql-sql

From Bruno Wolff III
Subject Re: Comparing Numeric and Double Precision (float8)..
Date
Msg-id 20021104134515.GA5617@wolff.to
Whole thread Raw
In response to Comparing Numeric and Double Precision (float8)..  (Terry Yapt <pgsql@technovell.com>)
List pgsql-sql
On Mon, Nov 04, 2002 at 09:11:30 +0100, Terry Yapt <pgsql@technovell.com> wrote:
> 
> When I compare a numeric(x,0) field with a float8 field I have an error
> on PostgreSQL what I didn't have with Oracle.  I mean:
> 
> CREATE test (one numeric(2,0));
> 
> SELECT * FROM test WHERE one = 1.00000; 

With 7.3b3 the above works after correcting the create statement.
bruno=> create table test (one numeric(2,0));
CREATE TABLE
bruno=> SELECT * FROM test WHERE one = 1.00000;one
-----
(0 rows)



pgsql-sql by date:

Previous
From: Terry Yapt
Date:
Subject: Comparing Numeric and Double Precision (float8)..
Next
From: Terry Yapt
Date:
Subject: Re: Comparing Numeric and Double Precision (float8)..