soql-parser-js
soql-parser-js copied to clipboard
isNegationOperator does not handle all cases
- [ ] 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.