From: Bruno Wolff III <bruno@wolff.to>
To: Terry Yapt <pgsql@technovell.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Comparing Numeric and Double Precision (float8)..
Date: Mon, 4 Nov 2002 07:45:15 -0600
Message-ID: <20021104134515.GA5617@wolff.to> (raw)
In-Reply-To: <3DC62BB2.72FC66C8@technovell.com>
References: <3DC62BB2.72FC66C8@technovell.com>
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)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: bruno@wolff.to, pgsql@technovell.com
Subject: Re: Comparing Numeric and Double Precision (float8)..
In-Reply-To: <20021104134515.GA5617@wolff.to>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox