- Notifications
You must be signed in to change notification settings - Fork5
Commit47386fe
committed
Use floor() not rint() when reducing precision of fractional seconds in
timestamp_trunc, timestamptz_trunc, and interval_trunc(). This changeonly affects the float-datetime case; the integer-datetime case alreadybehaved like truncation instead of rounding. Per gripe from Mario Splivalo.This is a pre-existing issue but I'm choosing not to backpatch, becauseit's such a corner case and there have not been prior complaints. Theissue is largely moot anyway given the trend towards integer datetimes.1 parent44886bd commit47386fe
1 file changed
+7
-7
lines changedLines changed: 7 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
3338 | 3338 |
| |
3339 | 3339 |
| |
3340 | 3340 |
| |
3341 |
| - | |
| 3341 | + | |
3342 | 3342 |
| |
3343 | 3343 |
| |
3344 | 3344 |
| |
3345 | 3345 |
| |
3346 | 3346 |
| |
3347 |
| - | |
| 3347 | + | |
3348 | 3348 |
| |
3349 | 3349 |
| |
3350 | 3350 |
| |
| |||
3494 | 3494 |
| |
3495 | 3495 |
| |
3496 | 3496 |
| |
3497 |
| - | |
| 3497 | + | |
3498 | 3498 |
| |
3499 | 3499 |
| |
3500 | 3500 |
| |
3501 | 3501 |
| |
3502 |
| - | |
| 3502 | + | |
3503 | 3503 |
| |
3504 | 3504 |
| |
3505 | 3505 |
| |
| |||
3591 | 3591 |
| |
3592 | 3592 |
| |
3593 | 3593 |
| |
3594 |
| - | |
| 3594 | + | |
3595 | 3595 |
| |
3596 | 3596 |
| |
3597 | 3597 |
| |
3598 | 3598 |
| |
3599 |
| - | |
| 3599 | + | |
3600 | 3600 |
| |
3601 | 3601 |
| |
3602 | 3602 |
| |
|
0 commit comments
Comments
(0)