jetstreamapp / soql-parser-js

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

WHERE clause allows and/or as first statement #168

Closed paustint closed 2 years ago

paustint commented 3 years ago

Description

This query is invalid, but is parsed as if it is valid 😨

SELECT Id
FROM User
WHERE AND IsActive = TRUE

No AND/OR clause between the elements 😨

SELECT Id
FROM User
WHERE IsActive = TRUE (
  Profile.Name = 'System Administrator'
  OR Name IN ('foo')
)