Files
postgresql/src
Tom Lane 2b47e29f20 Fix YA unwanted behavioral difference with operator_precedence_warning.
Jeff Janes noted that the error cursor position shown for some errors
would vary when operator_precedence_warning is turned on.  We'd prefer
that option to have no undocumented effects, so this isn't desirable.
To fix, make sure that an AEXPR_PAREN node has the same exprLocation
as its child node.

(Note: it would be a little cheaper to use @2 here instead of an
exprLocation call, but there are cases where that wouldn't produce
the 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.com
2017-02-15 14:44:00 -05:00
..
2017-02-06 12:39:38 -05:00
2015-05-23 21:35:49 -04:00
2017-02-06 16:47:25 -05:00
2017-02-06 16:47:25 -05:00
2017-02-06 12:39:38 -05:00
2017-02-06 16:47:25 -05:00
2017-02-06 11:34:18 +02:00