forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf2a2bf6
committed
Fix extract epoch from interval calculation
The new numeric code for extract epoch from interval accidentallytruncated the DAYS_PER_YEAR value to an integer, leading to resultsthat mismatched the floating-point interval_part calculations.The commita2da77c that introducedthis actually contains the regression test change that this reverts.I suppose this was missed at the time.Reported-by: Joseph Koshakow <koshy44@gmail.com>Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>Discussion:https://www.postgresql.org/message-id/flat/CAAvxfHd5n%3D13NYA2q_tUq%3D3%3DSuWU-CufmTf-Ozj%3DfrEgt7pXwQ%40mail.gmail.com1 parenta62bff7 commitf2a2bf6
File tree
2 files changed
+12
-6
lines changed- src
- backend/utils/adt
- test/regress/expected
2 files changed
+12
-6
lines changedLines changed: 10 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5308 | 5308 |
| |
5309 | 5309 |
| |
5310 | 5310 |
| |
5311 |
| - | |
5312 |
| - | |
5313 |
| - | |
5314 |
| - | |
| 5311 | + | |
| 5312 | + | |
| 5313 | + | |
| 5314 | + | |
| 5315 | + | |
| 5316 | + | |
| 5317 | + | |
| 5318 | + | |
| 5319 | + | |
| 5320 | + | |
5315 | 5321 |
| |
5316 | 5322 |
| |
5317 | 5323 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1655 | 1655 |
| |
1656 | 1656 |
| |
1657 | 1657 |
| |
1658 |
| - | |
| 1658 | + | |
1659 | 1659 |
| |
1660 | 1660 |
| |
1661 | 1661 |
| |
1662 |
| - | |
| 1662 | + | |
1663 | 1663 |
| |
1664 | 1664 |
| |
1665 | 1665 |
| |
|
0 commit comments
Comments
(0)