- Notifications
You must be signed in to change notification settings - Fork5
Commitb73c0c2
committed
Clean up a couple of weird corner cases in interval parsing: make -yyyy-mm be
interpreted as expected (the sign should affect months too), and get rid ofhard-wired assumption that unmarked signed values must be hours (if integers)or seconds (if floats). The former was just a bug in my previous patch,while the latter may have made sense at one time but seems illogical nowthat we support determination of the units from typmod information.Ron Mayer and myself.1 parent30df79a commitb73c0c2
File tree
3 files changed
+13
-38
lines changed- src
- backend/utils/adt
- test/regress
- expected
- sql
3 files changed
+13
-38
lines changedLines changed: 13 additions & 31 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 |
| |
| |||
448 | 448 |
| |
449 | 449 |
| |
450 | 450 |
| |
451 |
| - | |
| 451 | + | |
452 | 452 |
| |
453 | 453 |
| |
454 | 454 |
| |
| |||
610 | 610 |
| |
611 | 611 |
| |
612 | 612 |
| |
| 613 | + | |
613 | 614 |
| |
614 | 615 |
| |
615 | 616 |
| |
616 | 617 |
| |
617 | 618 |
| |
618 |
| - | |
| 619 | + | |
619 | 620 |
| |
620 | 621 |
| |
621 | 622 |
| |
| |||
2774 | 2775 |
| |
2775 | 2776 |
| |
2776 | 2777 |
| |
2777 |
| - | |
| 2778 | + | |
| 2779 | + | |
2778 | 2780 |
| |
2779 | 2781 |
| |
2780 | 2782 |
| |
2781 | 2783 |
| |
2782 |
| - | |
2783 |
| - | |
2784 |
| - | |
| 2784 | + | |
| 2785 | + | |
| 2786 | + | |
2785 | 2787 |
| |
2786 |
| - | |
2787 |
| - | |
2788 |
| - | |
2789 |
| - | |
| 2788 | + | |
2790 | 2789 |
| |
2791 | 2790 |
| |
2792 | 2791 |
| |
| |||
2808 | 2807 |
| |
2809 | 2808 |
| |
2810 | 2809 |
| |
2811 |
| - | |
2812 |
| - | |
2813 |
| - | |
2814 |
| - | |
2815 |
| - | |
2816 |
| - | |
2817 |
| - | |
2818 |
| - | |
2819 |
| - | |
2820 |
| - | |
2821 |
| - | |
2822 |
| - | |
2823 |
| - | |
2824 |
| - | |
2825 |
| - | |
2826 |
| - | |
2827 |
| - | |
2828 |
| - | |
2829 |
| - | |
2830 | 2810 |
| |
2831 | 2811 |
| |
2832 | 2812 |
| |
2833 | 2813 |
| |
2834 | 2814 |
| |
2835 | 2815 |
| |
2836 |
| - | |
| 2816 | + | |
2837 | 2817 |
| |
2838 | 2818 |
| |
2839 | 2819 |
| |
| |||
2883 | 2863 |
| |
2884 | 2864 |
| |
2885 | 2865 |
| |
| 2866 | + | |
| 2867 | + | |
2886 | 2868 |
| |
2887 | 2869 |
| |
2888 | 2870 |
| |
|
Lines changed: 0 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
24 |
| - | |
25 |
| - | |
26 |
| - | |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 | 24 |
| |
31 | 25 |
| |
32 | 26 |
| |
|
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
12 | 11 |
| |
13 | 12 |
| |
14 | 13 |
| |
|
0 commit comments
Comments
(0)