Re: Comparing Numeric and Double Precision (float8)..

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Terry Yapt <pgsql(at)technovell(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Comparing Numeric and Double Precision (float8)..
Date: 2002-11-04 13:45:15
Message-ID: 20021104134515.GA5617@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Mon, Nov 04, 2002 at 09:11:30 +0100,
Terry Yapt <pgsql(at)technovell(dot)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)

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Terry Yapt 2002-11-04 14:35:28 Re: Comparing Numeric and Double Precision (float8)..
Previous Message Terry Yapt 2002-11-04 08:11:30 Comparing Numeric and Double Precision (float8)..