Обсуждение: Add overflow test in function numeric_exp.

Поиск
Список
Период
Сортировка

Add overflow test in function numeric_exp.

От
Yang Xiao
Дата:
Hi,

The attachment is the proposal patch for function numeric_exp in 
src/backend/utils/adt/numeric.c.


Young

Вложения

Re: Add overflow test in function numeric_exp.

От
Tom Lane
Дата:
Yang Xiao <YangX92@hotmail.com> writes:
> The attachment is the proposal patch for function numeric_exp in 
> src/backend/utils/adt/numeric.c.

Why do we need this?  numeric_exp() already detects result overflow.

regression=# select numeric_exp(10000); 
ERROR:  value overflows numeric format

            regards, tom lane