Divid by zero bug in float

Поиск
Список
Период
Сортировка
От Jim C. Nasby
Тема Divid by zero bug in float
Дата
Msg-id 20060222173205.GF77800@pervasive.com
обсуждение исходный текст
Ответы Re: Divid by zero bug in float  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Magnus Hagander"
Дата:
Сообщение: Re: windows / initdb oddness
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Divid by zero bug in float