- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit9afc583
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 belarger than a day. When we changed the interval type to contain a separateday field, check_timezone() was adjusted to reject nonzero day values, buttimetz_izone(), timestamp_izone(), and timestamptz_izone() evidently wereoverlooked.While at it, make the error messages for these three cases consistent.1 parentbfb8a8d commit9afc583
2 files changed
+6
-6
lines changedLines changed: 2 additions & 2 deletions
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 |
| |
|
Lines changed: 4 additions & 4 deletions
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
Comments
(0)