diff options
author | Dean Rasheed <dean.a.rasheed@gmail.com> | 2021-07-10 12:50:05 +0100 |
---|---|---|
committer | Dean Rasheed <dean.a.rasheed@gmail.com> | 2021-07-10 12:50:05 +0100 |
commit | 54a0ec1bd6d5f46938b8da7bbcf7c3cb26b8638d (patch) | |
tree | 7330d99043974c5ab06c1937c29c92f22dd1725e /src/backend/utils/adt/network.c | |
parent | 56533fce7345669b7f0b5f9f4467ab81b19fbe19 (diff) |
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
Diffstat (limited to 'src/backend/utils/adt/network.c')
0 files changed, 0 insertions, 0 deletions