Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id B5191B5D90E for ; Tue, 24 May 2011 04:14:34 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 23095-06 for ; Tue, 24 May 2011 07:14:34 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id 31CDBB5D8BD for ; Tue, 24 May 2011 04:14:34 -0300 (ADT) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id p4O7EXbO059511 for ; Tue, 24 May 2011 07:14:33 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p4O7EXQW059510; Tue, 24 May 2011 07:14:33 GMT (envelope-from www) Date: Tue, 24 May 2011 07:14:33 GMT Message-Id: <201105240714.p4O7EXQW059510@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #6036: why a REAL should be queried as a string? From: "jose soares" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201105/173 X-Sequence-Number: 30312 The following bug has been logged online: Bug reference: 6036 Logged by: jose soares Email address: jose.soares@sferacarta.com PostgreSQL version: 8.4.4 Operating system: x86_64-pc-linux-gnu Description: why a REAL should be queried as a string? Details: I'd like to to report this strange behavior, that I think is a bug... # \d frazione Table "public.frazione" Column | Type | Modifiers ------------+---------+-------------------- id | integer | not null importo | real | not null # update frazione set importo=0.833 where id=549; UPDATE 1 # select * from frazione where importo=0.833; id | importo ----+--------- (0 rows) # select * from frazione where importo='0.833'; id | importo -----+---------- 549 | 0.833 (1 rows)