Re: Check for integer overflow in datetime functions

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: Check for integer overflow in datetime functions
Дата
Msg-id 1133424721.10985.22.camel@localhost.localdomain
обсуждение исходный текст
Ответ на Check for integer overflow in datetime functions  (Michael Fuhr <mike@fuhr.org>)
Ответы Re: Check for integer overflow in datetime functions  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
On Wed, 2005-11-30 at 19:36 -0700, Michael Fuhr wrote:
> Check integer conversion for overflow in datetime functions.

It seems a bit laborious to always manually set errno to zero before
invoking strtol() (both in the places added by the patch, and all the
places that already did that). While it's only a minor notational
improvement, I wonder if it would be worth adding a pg_strtol() that did
the errno assignment so that each call-site wouldn't need to worry about
it?

-Neil



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

Предыдущее
От: Tatsuo Ishii
Дата:
Сообщение: Re: A couple of proposed pgbench changes
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: aclchk.c refactor