Skip to content

Commit

Permalink
Minor logic error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dtenwolde committed Nov 20, 2024
1 parent 9ee35ae commit b9d3917
Show file tree
Hide file tree
Showing 3 changed files with 26,475 additions and 26,599 deletions.
2 changes: 1 addition & 1 deletion third_party/libpg_query/grammar/statements/pgq.y
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ Arrow:
ok = op + 1 + (op[1] == '>');
}
/* it may optionally be followed by a single * or + */
if (!ok || (ok[0] && (ok[0] != '*' || ok[0] != '+' || ok[1]))) {
if (!ok || (ok[0] && ((ok[0] != '*' && ok[0] != '+') || ok[1]))) {
char msg[128];
snprintf(msg, 128, "PGQ expected an arrow instead of %s operator.", $1);
parser_yyerror(msg);
Expand Down
Loading

0 comments on commit b9d3917

Please sign in to comment.