- Notifications
You must be signed in to change notification settings - Fork28
Commit5cca35a
committed
Make handling of INTERVAL DAY TO MINUTE and INTERVAL DAY TO SECOND input
more consistent with other cases, by having an unlabeled integer fieldbe treated as a number of minutes or seconds respectively. These casesare outside the spec (which insists on full "dd hh:mm" or "dd hh:mm:ss"input respectively), so it's not much help to us in deciding what to do.But with this change, it's uniformly the case that an unlabeled integerwill be considered as being a number of the interval's rightmost field.The change also takes us back to the 8.3 behavior of throwing errorfor certain ambiguous inputs such as INTERVAL '1 2' DAY TO MINUTE.Per recent discussion.1 parent0dcc73f commit5cca35a
File tree
2 files changed
+13
-19
lines changed- src
- backend/utils/adt
- test/regress/expected
2 files changed
+13
-19
lines changedLines changed: 4 additions & 4 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 |
| |
| |||
2917 | 2917 |
| |
2918 | 2918 |
| |
2919 | 2919 |
| |
2920 |
| - | |
2921 |
| - | |
2922 | 2920 |
| |
2923 | 2921 |
| |
2924 | 2922 |
| |
2925 | 2923 |
| |
| 2924 | + | |
2926 | 2925 |
| |
2927 | 2926 |
| |
2928 | 2927 |
| |
2929 |
| - | |
2930 | 2928 |
| |
| 2929 | + | |
| 2930 | + | |
2931 | 2931 |
| |
2932 | 2932 |
| |
2933 | 2933 |
| |
|
Lines changed: 9 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
466 | 466 |
| |
467 | 467 |
| |
468 | 468 |
| |
469 |
| - | |
470 |
| - | |
471 |
| - | |
472 |
| - | |
473 |
| - | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
474 | 472 |
| |
475 | 473 |
| |
476 | 474 |
| |
| |||
484 | 482 |
| |
485 | 483 |
| |
486 | 484 |
| |
487 |
| - | |
488 |
| - | |
489 |
| - | |
490 |
| - | |
491 |
| - | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
492 | 488 |
| |
493 | 489 |
| |
494 | 490 |
| |
| |||
605 | 601 |
| |
606 | 602 |
| |
607 | 603 |
| |
608 |
| - | |
609 |
| - | |
610 |
| - | |
611 |
| - | |
612 |
| - | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
613 | 607 |
| |
614 | 608 |
| |
615 | 609 |
| |
|
0 commit comments
Comments
(0)