- Notifications
You must be signed in to change notification settings - Fork5
Commit01e0cbc
committed
Fix YA unwanted behavioral difference with operator_precedence_warning.
Jeff Janes noted that the error cursor position shown for some errorswould vary when operator_precedence_warning is turned on. We'd preferthat option to have no undocumented effects, so this isn't desirable.To fix, make sure that an AEXPR_PAREN node has the same exprLocationas its child node.(Note: it would be a little cheaper to use@2 here instead of anexprLocation call, but there are cases where that wouldn't producethe identical answer, so don't do it like that.)Back-patch to 9.5 where this feature was introduced.Discussion:https://postgr.es/m/CAMkU=1ykK+VhhcQ4Ky8KBo9FoaUJH3f3rDQB8TkTXi-ZsBRUkQ@mail.gmail.com1 parent5262f7a commit01e0cbc
1 file changed
+6
-2
lines changedLines changed: 6 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12764 | 12764 |
| |
12765 | 12765 |
| |
12766 | 12766 |
| |
12767 |
| - | |
| 12767 | + | |
| 12768 | + | |
| 12769 | + | |
| 12770 | + | |
12768 | 12771 |
| |
12769 | 12772 |
| |
12770 | 12773 |
| |
| |||
12773 | 12776 |
| |
12774 | 12777 |
| |
12775 | 12778 |
| |
12776 |
| - | |
| 12779 | + | |
| 12780 | + | |
12777 | 12781 |
| |
12778 | 12782 |
| |
12779 | 12783 |
| |
|
0 commit comments
Comments
(0)