BUG #6036: why a REAL should be queried as a string?

From: "jose soares" <jose(dot)soares(at)sferacarta(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #6036: why a REAL should be queried as a string?
Date: 2011-05-24 07:14:33
Message-ID: 201105240714.p4O7EXQW059510@wwwmaster.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 6036
Logged by: jose soares
Email address: jose(dot)soares(at)sferacarta(dot)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)

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Paragon Corporation 2011-05-24 11:05:22 PostgreSQL 9.1beta 1 Some domains not being able to be auto cast to their base type
Previous Message Robert Haas 2011-05-24 03:10:13 Re: [BUGS] BUG #6034: pg_upgrade fails when it should not.