Skip site navigation (1) Skip section navigation (2)

float4 regression test failed on linux parisc

From: "Jim Buttafuoco" <jim(at)contactbda(dot)com>
To: "pgsql-hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: float4 regression test failed on linux parisc
Date: 2005-02-01 15:12:27
Message-ID: 20050201144717.M71310@contactbda.com (view raw or flat)
Thread:
Lists: pgsql-hackers
I am getting a float4 regression test failure.  I have extracted the SQL from both the float4 and float8 tests below.  
Both should return NAN

I looked at the code,  The float4div does the operation as float8's then checks the value.  The value is a valid 
float8 NAN.  The call to CheckFloat4Val is missing a cast back to float4.  If I put the cast in I get the expected 
results (NAN).


SELECT 'Infinity'::float4 / 'Infinity'::float4;
psql:test.sql:1: ERROR:  type "real" value out of range: overflow

SELECT 'Infinity'::float8 / 'Infinity'::float8;
 ?column? 
----------
      NaN
(1 row)


Responses

pgsql-hackers by date

Next:From: Marc G. FournierDate: 2005-02-01 15:28:08
Subject: Re: 7.2.7 -> 8.0.1 Bundles Ready ...
Previous:From: John HansenDate: 2005-02-01 14:48:49
Subject: Re: [NOVICE] Last ID Problem

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group