Apr 2019

2 commits
Fix more strcmp() calls using boolean-like comparisons for result checks
12 Apr 2019Michael Paquiermaster12beta1REL_19_STABLE12beta1REL_18_STABLE12beta1REL_17_STABLE12beta1REL_16_STABLE12beta1REL_15_STABLE12beta1REL_14_STABLE12beta1REL_13_STABLE12beta1+1 more
LLM analysis, 100% suremodified before commitlight changesfrom patchset #91 of 1 reviewer saw the final version

The commit preserves all four hunks from #9 and adds two equivalent explicit strcmp() comparisons in src/backend/tsearch/spell.c identified by David Rowley in #10. Michael Paquier confirmed including those additions in #13.

  • David Rowleysaw the final versiontrailerDavid reviewed #9 and identified two additional spell.c comparisons in #10, which were incorporated as light cleanup changes.
Fix backwards test in operator_precedence_warning logic.
10 Apr 2019Tom Lanemaster12beta1REL_19_STABLE12beta1REL_18_STABLE12beta1REL_17_STABLE12beta1REL_16_STABLE12beta1REL_15_STABLE12beta1REL_14_STABLE12beta1REL_13_STABLE12beta1+5 more
LLM analysis, 100% surewritten from the discussion, no matching patch

The sole change adds == 0 to the unary-minus strcmp() check in src/backend/parser/parse_expr.c, exactly the inline correction proposed by Rikard Falkeborn in #1. The commit credits Rikard and predates the unrelated cleanup attachment #9.

Credits across 2 commits

Author
Michael Paquier1
Reviewer
David Rowley1
Committer
Michael Paquier1
Tom Lane1