Re: [BUGS] Money type does not detect over/underflow unlike int/int8

Поиск
Список
Период
Сортировка
От Kyotaro HORIGUCHI
Тема Re: [BUGS] Money type does not detect over/underflow unlike int/int8
Дата
Msg-id CAM103DuJW==9bizbLDuWuDfzGfas0pG9e+zjPMwFVibZOs=ZGw@mail.gmail.com
обсуждение исходный текст
Список pgsql-bugs
 i wrote:
>       result = (Cash)f * 100;
 >       if ((c > 0 && CASH_MAX / c <= result) ||
 >           (c < 0 && CASH_MIN / c >= result))
 >          ereport("overflow");

ah... this is still wrong. Will be different not so much, though.

regards,

--
Kyotaro Horiguchi
NTT Open Source Software Center


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

Предыдущее
От: Huong Dangminh
Дата:
Сообщение: Failed with build PostgreSQL in Windows ("--with-perl" option)
Следующее
От: david.ung@fr.abnamro.com
Дата:
Сообщение: Re: [BUGS] BUG #14611: Black screen when launching pgadmin4