Re: [HACKERS] Divid by zero bug in float

2006-02-22 Thread Jim C. Nasby
On Wed, Feb 22, 2006 at 12:40:11PM -0500, Tom Lane wrote: > "Jim C. Nasby" <[EMAIL PROTECTED]> writes: > > Shouldn't this produce Infinity instead of an error? > > postgresql=# select 5::float/0::float; > > ERROR: division by zero > > No, I don't think so. SQL92 6.12 quoth: > > 4) The

Re: [HACKERS] Divid by zero bug in float

2006-02-22 Thread Tom Lane
"Jim C. Nasby" <[EMAIL PROTECTED]> writes: > Shouldn't this produce Infinity instead of an error? > postgresql=# select 5::float/0::float; > ERROR: division by zero No, I don't think so. SQL92 6.12 quoth: 4) The dyadic arithmetic operators , , , and (+, -, *, and /, respectively) spe

[HACKERS] Divid by zero bug in float

2006-02-22 Thread Jim C. Nasby
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 [EMAIL PROTECTED] Pervasive S