- Notifications
You must be signed in to change notification settings - Fork28
Commit8350aae
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 parent3e51859 commit8350aae
1 file changed
+6
-2
lines changedLines changed: 6 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12096 | 12096 |
| |
12097 | 12097 |
| |
12098 | 12098 |
| |
12099 |
| - | |
| 12099 | + | |
| 12100 | + | |
| 12101 | + | |
| 12102 | + | |
12100 | 12103 |
| |
12101 | 12104 |
| |
12102 | 12105 |
| |
| |||
12105 | 12108 |
| |
12106 | 12109 |
| |
12107 | 12110 |
| |
12108 |
| - | |
| 12111 | + | |
| 12112 | + | |
12109 | 12113 |
| |
12110 | 12114 |
| |
12111 | 12115 |
| |
|
0 commit comments
Comments
(0)