Divid by zero bug in float

From: "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Divid by zero bug in float
Date: 2006-02-22 17:32:05
Message-ID: 20060222173205.GF77800@pervasive.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Shouldn't this produce Infinity instead of an error?
postgresql=# select 5::float/0::float;
ERROR: division by zero
postgresql=# select 5::float/'Infinity'::float;
?column?
----------
0
(1 row)

postgresql=#
--
Jim C. Nasby, Sr. Engineering Consultant jnasby(at)pervasive(dot)com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2006-02-22 17:40:11 Re: Divid by zero bug in float
Previous Message Magnus Hagander 2006-02-22 17:22:58 Re: windows / initdb oddness