Re: Numeric overflow problem + patch

Поиск
Список
Период
Сортировка
От David Fetter
Тема Re: Numeric overflow problem + patch
Дата
Msg-id 20061002004602.GA18936@fetter.org
обсуждение исходный текст
Ответ на Re: Numeric overflow problem + patch  (Martijn van Oosterhout <kleptog@svana.org>)
Ответы Re: Numeric overflow problem + patch  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
On Thu, Sep 28, 2006 at 11:16:56PM +0200, Martijn van Oosterhout wrote:
> On Thu, Sep 28, 2006 at 05:11:43PM -0400, Tom Lane wrote:
> > David Fetter <david@fetter.org> writes:
> > > ! DETAIL:  A field with precision 4, scale 4 must have an absolute value less than 1.
> > > [ becomes ]
> > > ! DETAIL:  A field with precision 4, scale 4 must have an absolute value less than 1 - 5 * 10^-5.
> >
> > This strikes me as overly pedantic.  The message needs to be clear,
> > and the proposed change will just confuse people.
>
> I don't know if the code can detect the difference, but a message like:
>
> A field with precision 4, scale 4 must *round to* an absolute value less than 1
>
> Since that more accurately describes the actual problem.
>
> Have a ncie day,

Per your suggestion, how about this patch?

Cheers,
D
--
David Fetter <david@fetter.org> http://fetter.org/
phone: +1 415 235 3778        AIM: dfetter666
                              Skype: davidfetter

Remember to vote!

Вложения

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

Предыдущее
От: "Andrew Dunstan"
Дата:
Сообщение: Re: Win32 hard crash problem
Следующее
От: Steve Singer
Дата:
Сообщение: 8.2beta1 failure on IRIX