forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit06883d5
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 parent9ffad7a commit06883d5
File tree
3 files changed
+17
-1
lines changed- src
- backend/utils/adt
- test/regress
- expected
- sql
3 files changed
+17
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
| 236 | + | |
236 | 237 | | |
237 | 238 | | |
238 | 239 | | |
| |||
2955 | 2956 | | |
2956 | 2957 | | |
2957 | 2958 | | |
2958 | | - | |
| 2959 | + | |
| 2960 | + | |
| 2961 | + | |
| 2962 | + | |
| 2963 | + | |
2959 | 2964 | | |
2960 | 2965 | | |
2961 | 2966 | | |
2962 | 2967 | | |
2963 | 2968 | | |
2964 | 2969 | | |
2965 | 2970 | | |
| 2971 | + | |
| 2972 | + | |
| 2973 | + | |
2966 | 2974 | | |
2967 | 2975 | | |
2968 | 2976 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2145 | 2145 | | |
2146 | 2146 | | |
2147 | 2147 | | |
| 2148 | + | |
| 2149 | + | |
| 2150 | + | |
| 2151 | + | |
| 2152 | + | |
| 2153 | + | |
2148 | 2154 | | |
2149 | 2155 | | |
2150 | 2156 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1044 | 1044 | | |
1045 | 1045 | | |
1046 | 1046 | | |
| 1047 | + | |
| 1048 | + | |
1047 | 1049 | | |
1048 | 1050 | | |
1049 | 1051 | | |
| |||
0 commit comments
Comments
(0)