Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id D01C4475AFF for ; Mon, 4 Nov 2002 08:35:45 -0500 (EST) Received: from wolff.to (unknown [66.93.197.35]) by postgresql.org (Postfix) with SMTP id 2C8D6475A7F for ; Mon, 4 Nov 2002 08:35:45 -0500 (EST) Received: (qmail 5726 invoked by uid 500); 4 Nov 2002 13:45:15 -0000 Date: Mon, 4 Nov 2002 07:45:15 -0600 From: Bruno Wolff III To: Terry Yapt Cc: pgsql-sql@postgresql.org Subject: Re: Comparing Numeric and Double Precision (float8).. Message-ID: <20021104134515.GA5617@wolff.to> Mail-Followup-To: Terry Yapt , pgsql-sql@postgresql.org References: <3DC62BB2.72FC66C8@technovell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3DC62BB2.72FC66C8@technovell.com> User-Agent: Mutt/1.3.25i X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/43 X-Sequence-Number: 10185 On Mon, Nov 04, 2002 at 09:11:30 +0100, Terry Yapt 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)