pgsql: Fix numeric_mul() overflow due to too many digits after decimal
В списке pgsql-committers по дате отправления:
| От | Dean Rasheed |
|---|---|
| Тема | pgsql: Fix numeric_mul() overflow due to too many digits after decimal |
| Дата | |
| Msg-id | E1m2BYl-0007cF-AL@gemulon.postgresql.org обсуждение исходный текст |
| Ответы |
Re: pgsql: Fix numeric_mul() overflow due to too many digits after decimal
|
| Список | pgsql-committers |
Fix numeric_mul() overflow due to too many digits after decimal point. This fixes an overflow error when using the numeric * operator if the result has more than 16383 digits after the decimal point by rounding the result. Overflow errors should only occur if the result has too many digits *before* the decimal point. Discussion: https://postgr.es/m/CAEZATCUmeFWCrq2dNzZpRj5+6LfN85jYiDoqm+ucSXhb9U2TbA@mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/e7fc488ad67caaad33f6d5177081884495cb81cb Modified Files -------------- src/backend/utils/adt/numeric.c | 10 +++++++++- src/test/regress/expected/numeric.out | 6 ++++++ src/test/regress/sql/numeric.sql | 2 ++ 3 files changed, 17 insertions(+), 1 deletion(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера