Content-Length: 260755 | pFad | http://github.com/postgrespro/postgres/commit/930930c476634991d1fa9838b1e41801d024eebf

AE Fix backwards test in operator_precedence_warning logic. · postgrespro/postgres@930930c · GitHub
Skip to content

Commit 930930c

Browse files
committed
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
1 parent 036f7d3 commit 930930c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/parser/parse_expr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3154,7 +3154,7 @@ operator_precedence_group(Node *node, const char **nodename)
31543154
*nodename = strVal(linitial(aexpr->name));
31553155
/* Ignore if op was always higher priority than IS-tests */
31563156
if (strcmp(*nodename, "+") == 0 ||
3157-
strcmp(*nodename, "-"))
3157+
strcmp(*nodename, "-") == 0)
31583158
group = 0;
31593159
else
31603160
group = PREC_GROUP_PREFIX_OP;

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/930930c476634991d1fa9838b1e41801d024eebf

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy