forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5763ef4
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 parent2c28c68 commit5763ef4
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 | |
---|---|---|---|
| |||
203 | 203 |
| |
204 | 204 |
| |
205 | 205 |
| |
| 206 | + | |
206 | 207 |
| |
207 | 208 |
| |
208 | 209 |
| |
| |||
2488 | 2489 |
| |
2489 | 2490 |
| |
2490 | 2491 |
| |
2491 |
| - | |
| 2492 | + | |
| 2493 | + | |
| 2494 | + | |
| 2495 | + | |
| 2496 | + | |
2492 | 2497 |
| |
2493 | 2498 |
| |
2494 | 2499 |
| |
2495 | 2500 |
| |
2496 | 2501 |
| |
2497 | 2502 |
| |
2498 | 2503 |
| |
| 2504 | + | |
| 2505 | + | |
| 2506 | + | |
2499 | 2507 |
| |
2500 | 2508 |
| |
2501 | 2509 |
| |
|
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)