soql-parser-js icon indicating copy to clipboard operation
soql-parser-js copied to clipboard

isNegationOperator does not handle all cases

Open paustint opened this issue 4 years ago • 0 comments

  • [ ] Feature
  • [x] Bug

Description

SELECT AnnualRevenue FROM Account WHERE NOT (AnnualRevenue > 0 AND AnnualRevenue < 200000)

The first condition is a negation operator, but there are no open parens.

Looking at the code, this seems super buggy and may have not been updated on a refactor. Should add some tests to detect this.

paustint avatar Dec 18 '20 02:12 paustint