You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.
Consider following queries: $filter=name eq 'John' or name lt 'Doe' and address gt 'x1234' $filter=(name eq 'John' or name lt 'Doe') and name gt 'x1234'
AST for these queries is the same.
The current implementation of the grammar does not know about operator precedence (in this case, specifically with and/or). You're right that this is incorrect behavior. Until it's fixed, the workaround is to always use parenthesis. Notice the following ASTs are different:
$filter=(name eq 'John' or name lt 'Doe') and name gt 'x1234'
$filter=name eq 'John' or (name lt 'Doe' and name gt 'x1234')
Consider following queries:
$filter=name eq 'John' or name lt 'Doe' and address gt 'x1234'
$filter=(name eq 'John' or name lt 'Doe') and name gt 'x1234'
AST for these queries is the same.
The text was updated successfully, but these errors were encountered: