Bug #952: real type in WHERE

From: pgsql-bugs(at)postgresql(dot)org
To: pgsql-bugs(at)postgresql(dot)org
Subject: Bug #952: real type in WHERE
Date: 2003-04-22 10:37:27
Message-ID: 20030422103727.688B74758C9@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Victor (hvicha(at)mail(dot)ru) reports a bug with a severity of 2
The lower the number the more severe it is.

Short Description
real type in WHERE

Long Description
Strange result for real type in WHERE, see example.

Sample Code
victest=# CREATE TABLE t (r real);
CREATE
victest=# INSERT INTO t (r) VALUES (1.0);
INSERT 1309087 1
victest=# INSERT INTO t (r) VALUES (1.1);
INSERT 1309145 1
victest=# INSERT INTO t (r) VALUES (1.2);
INSERT 1309146 1
victest=# SELECT * FROM t WHERE r=1.1;
r
---
(0 rows)
victest=# SELECT * FROM t WHERE r='1.1';
r
-----
1.1
(1 row)

No file was uploaded with this report

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2003-04-22 15:25:34 Re: Bug #952: real type in WHERE
Previous Message Dave Jarvis 2003-04-22 05:51:13 Shift-Enter = Segmentation Fault