Re: Strange interval arithmetic

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: Strange interval arithmetic
Дата
Msg-id 20051130231533.GA27780@winnie.fuhr.org
обсуждение исходный текст
Ответ на Re: Strange interval arithmetic  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
On Wed, Nov 30, 2005 at 06:00:07PM -0500, Andrew Dunstan wrote:
> LONG_MIN/LONG_MAX might be the actual values provided, too, mightn't 
> they? checking for ERANGE seems like the only viable test.

Errno needs to be checked in any case for just that reason; the
question was whether checking *only* errno is sufficient to detect
an error.  According to the standard it is.

-- 
Michael Fuhr


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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: Strange interval arithmetic
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: Strange interval arithmetic