[ECPG] fix functions in dt_common to correctly detect integeroverflow

Поиск
Список
Период
Сортировка
От Yang Xiao
Тема [ECPG] fix functions in dt_common to correctly detect integeroverflow
Дата
Msg-id SG2PR01MB2169D954F318F3B4BB1269DFADE70@SG2PR01MB2169.apcprd01.prod.exchangelabs.com
обсуждение исходный текст
Список pgsql-hackers
Hi,

The attachment is the proposal patch for dt_common.c.

replace strtol to strtoint, as strtol() will return 64-bit output in 
that case, while type of var, hr, tm_min
  is int.

Young


Вложения

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

Предыдущее
От: Yang Xiao
Дата:
Сообщение: Add overflow test in function numeric_exp.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pread() and pwrite()