Fix backwards test in operator_precedence_warning logic.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: b9b7fe8ca452e95f0723e59c1b4b74723e07bc33
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2019-04-10T23:03:29Z
Releases: 9.5.17
Fix backwards test in operator_precedence_warning logic.

Warnings about unary minus might have been wrong.  It's a bit
surprising that nobody noticed yet ... probably the precedence-warning
feature hasn't really been used much in the field.

Rikard Falkeborn

Discussion: https://postgr.es/m/CADRDgG6fzA8A2oeygUw4=o7ywo4kvz26NxCSgpq22nMD73Bx4Q@mail.gmail.com

Files

PathChange+/−
src/backend/parser/parse_expr.c modified +1 −1

Discussion