Commit 9afc583
committed
Reject nonzero day fields in AT TIME ZONE INTERVAL functions.
It's not sensible for an interval that's used as a time zone value to be
larger than a day. When we changed the interval type to contain a separate
day field, check_timezone() was adjusted to reject nonzero day values, but
timetz_izone(), timestamp_izone(), and timestamptz_izone() evidently were
overlooked.
While at it, make the error messages for these three cases consistent.1 parent bfb8a8d commit 9afc583
2 files changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2696 | 2696 | | |
2697 | 2697 | | |
2698 | 2698 | | |
2699 | | - | |
| 2699 | + | |
2700 | 2700 | | |
2701 | 2701 | | |
2702 | | - | |
| 2702 | + | |
2703 | 2703 | | |
2704 | 2704 | | |
2705 | 2705 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4604 | 4604 | | |
4605 | 4605 | | |
4606 | 4606 | | |
4607 | | - | |
| 4607 | + | |
4608 | 4608 | | |
4609 | 4609 | | |
4610 | | - | |
| 4610 | + | |
4611 | 4611 | | |
4612 | 4612 | | |
4613 | 4613 | | |
| |||
4777 | 4777 | | |
4778 | 4778 | | |
4779 | 4779 | | |
4780 | | - | |
| 4780 | + | |
4781 | 4781 | | |
4782 | 4782 | | |
4783 | | - | |
| 4783 | + | |
4784 | 4784 | | |
4785 | 4785 | | |
4786 | 4786 | | |
| |||
0 commit comments