- Notifications
You must be signed in to change notification settings - Fork5
Commit826604f
committed
Fix interval division and multiplication, before:
test=> select '4 months'::interval / 5; ?column?--------------- 1 mon -6 days(1 row)after:test=> select '4 months'::interval / 5; ?column?---------- 24 days(1 row)The problem was the use of rint() to round, and then find the remainder,causing the negative values.1 parentca76df4 commit826604f
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
2201 | 2201 | | |
2202 | 2202 | | |
2203 | 2203 | | |
2204 | | - | |
| 2204 | + | |
2205 | 2205 | | |
2206 | 2206 | | |
2207 | 2207 | | |
| |||
2246 | 2246 | | |
2247 | 2247 | | |
2248 | 2248 | | |
2249 | | - | |
| 2249 | + | |
2250 | 2250 | | |
2251 | 2251 | | |
2252 | 2252 | | |
| |||
0 commit comments
Comments
(0)