RE: [HACKERS] Bug?

From: Tom I Helbekkmo <tih(at)Hamartun(dot)Priv(dot)NO>
To: "Meskes, Michael" <meskes(at)topsystem(dot)de>
Cc: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>, pgsql-hackers(at)postgreSQL(dot)org
Subject: RE: [HACKERS] Bug?
Date: 1998-02-08 12:01:18
Message-ID: 980208125730.17171A@barsoom.Hamartun.Priv.NO
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sun, 8 Feb 1998, Michael Meskes wrote:

> Only if it is out of range it will go to float instead of giving
> back an error message. Where could that be a problem?

My worry about that is for the (unlikely, but possible) case where a
user gives a large number as a constant in a query, believing it to be
an integer. If we signal an error, the user will know that the number
was out of range. If not, we may end up doing calculations on floats
that the user wanted done on integers. This may mean losing accuracy,
which is something you don't want to do behind the user's back.

-tih
--
Popularity is the hallmark of mediocrity. --Niles Crane, "Frasier"

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom I Helbekkmo 1998-02-08 14:27:36 RE: [HACKERS] Bug?
Previous Message Meskes, Michael 1998-02-08 10:16:33 RE: [HACKERS] Bug?