forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf23a9b8
committed
Fix numeric_mul() overflow due to too many digits after decimal point.
This fixes an overflow error when using the numeric * operator if theresult has more than 16383 digits after the decimal point by roundingthe result. Overflow errors should only occur if the result has toomany digits *before* the decimal point.Discussion:https://postgr.es/m/CAEZATCUmeFWCrq2dNzZpRj5+6LfN85jYiDoqm+ucSXhb9U2TbA@mail.gmail.com1 parent32d0bdb commitf23a9b8
File tree
3 files changed
+17
-1
lines changed- src
- backend/utils/adt
- test/regress
- expected
- sql
3 files changed
+17
-1
lines changedLines changed: 9 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
205 | 205 |
| |
206 | 206 |
| |
207 | 207 |
| |
| 208 | + | |
208 | 209 |
| |
209 | 210 |
| |
210 | 211 |
| |
| |||
2549 | 2550 |
| |
2550 | 2551 |
| |
2551 | 2552 |
| |
2552 |
| - | |
| 2553 | + | |
| 2554 | + | |
| 2555 | + | |
| 2556 | + | |
| 2557 | + | |
2553 | 2558 |
| |
2554 | 2559 |
| |
2555 | 2560 |
| |
2556 | 2561 |
| |
2557 | 2562 |
| |
2558 | 2563 |
| |
2559 | 2564 |
| |
| 2565 | + | |
| 2566 | + | |
| 2567 | + | |
2560 | 2568 |
| |
2561 | 2569 |
| |
2562 | 2570 |
| |
|
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1498 | 1498 |
| |
1499 | 1499 |
| |
1500 | 1500 |
| |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
1501 | 1507 |
| |
1502 | 1508 |
| |
1503 | 1509 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
864 | 864 |
| |
865 | 865 |
| |
866 | 866 |
| |
| 867 | + | |
| 868 | + | |
867 | 869 |
| |
868 | 870 |
| |
869 | 871 |
| |
|
0 commit comments
Comments
(0)