forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork0
Commitbd4c76a
committed
Fix interval test, which was broken for floating-point timestamps.
Commit4318dae introduced a test thatcouldn't be made consistent between integer and floating-pointtimestamps.It was designed to test the longest possible interval output length,so removing four zeros from the number of hours, as this patch does,is not ideal. But the test still has some utility for its originalpurpose, and there aren't a lot of other good options.Noah Misch suggested a different approach where we test that theoutput either matches what we expect from integer timestamps or whatwe expect from floating-point timestamps. That seemed to obscure anotherwise simple test, however.Reviewed by Tom Lane and Noah Misch.1 parent99058cf commitbd4c76a
2 files changed
+11
-5
lines changedLines changed: 7 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
307 | 307 |
| |
308 | 308 |
| |
309 | 309 |
| |
310 |
| - | |
311 |
| - | |
312 |
| - | |
313 |
| - | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
314 | 317 |
| |
315 | 318 |
| |
316 | 319 |
| |
|
Lines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
109 | 109 |
| |
110 | 110 |
| |
111 | 111 |
| |
112 |
| - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
113 | 116 |
| |
114 | 117 |
| |
115 | 118 |
| |
|
0 commit comments
Comments
(0)