jetstreamapp / soql-parser-js

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

Nested Negation queries did not properly structure WHERE clauses #243

Closed paustint closed 10 months ago

paustint commented 10 months ago

Nested negation queries would return multiple nested expressions, but parsing the WHERE clause assumed that only one expression was returned from each visit to a condition.

This was solved by recursively walking the expressions until we came upon the final right expression to build upon instead of overwriting it.

resolves #242