jetstreamapp / soql-parser-js

Javascript SOQL parser
https://jetstreamapp.github.io/soql-parser-js/
MIT License
77 stars 20 forks source link

isNegationOperator does not handle all cases #129

Open paustint opened 3 years ago

paustint commented 3 years ago

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.