forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit165d581
committed
Tighten handling of "ago" in interval values
This commit Restrict the unit "ago" to only appear at the end of theinterval. According to the documentation, a direction can only bedefined at the end of an interval, but it was possible to define it inthe middle of the string or define it multiple times.In spirit, this is similar to the error handling improvements done in5b3c595 orbcc704b.Author: Joseph KoshakowReviewed-by: Jacob Champion, Gurjeet Singh, Reid ThompsonDiscussion:https://postgr.es/m/CAAvxfHd-yNO+XYnUxL=GaNZ1n+eE0V-oE0+-cC1jdjdU0KS3iw@mail.gmail.com1 parent9a0ddc3 commit165d581
File tree
3 files changed
+20
-0
lines changed- src
- backend/utils/adt
- test/regress
- expected
- sql
3 files changed
+20
-0
lines changedLines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3578 | 3578 |
| |
3579 | 3579 |
| |
3580 | 3580 |
| |
| 3581 | + | |
| 3582 | + | |
| 3583 | + | |
| 3584 | + | |
| 3585 | + | |
| 3586 | + | |
| 3587 | + | |
3581 | 3588 |
| |
3582 | 3589 |
| |
3583 | 3590 |
| |
|
Lines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1787 | 1787 |
| |
1788 | 1788 |
| |
1789 | 1789 |
| |
| 1790 | + | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
| 1795 | + | |
| 1796 | + | |
| 1797 | + | |
| 1798 | + |
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
582 | 582 |
| |
583 | 583 |
| |
584 | 584 |
| |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + |
0 commit comments
Comments
(0)