pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: jose soares <jose.soares@sferacarta.com>
To: pgsql-bugs@postgresql.org
Subject: BUG #6036: why a REAL should be queried as a string?
Date: Tue, 24 May 2011 07:14:33 GMT
Message-ID: <201105240714.p4O7EXQW059510@wwwmaster.postgresql.org> (raw)


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)



view thread (3+ messages)  latest in thread

Message-ID: <201105240714.p4O7EXQW059510@wwwmaster.postgresql.org>
Permalink:  ../201105240714.p4O7EXQW059510@wwwmaster.postgresql.org/
Also on:    postgresql.org/message-id/201105240714.p4O7EXQW059510@wwwmaster.postgresql.org

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: jose.soares@sferacarta.com
  Subject: Re: BUG #6036: why a REAL should be queried as a string?
  In-Reply-To: <201105240714.p4O7EXQW059510@wwwmaster.postgresql.org>
  References: <201105240714.p4O7EXQW059510@wwwmaster.postgresql.org>

* 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