fix shunting yard

This commit is contained in:
Rowan 2024-11-28 00:01:39 -06:00
parent 3a776ca1e1
commit b2de794ef1

View file

@ -83,6 +83,7 @@ describe('where operators', () => {
describe('WHERE keyword', () => {
it('handles complex filters', () => {
parse(whereClause, 'WHERE h.max > 500 AND (h.current < 250 OR a.value = 10) OR a.value <= 2')
assert.parseOk(whereClause, 'WHERE h.max > 500 AND (h.current < 250 OR a.value = 10) OR a.value <= 2', ([actual]) => {
const expected = [
new ObjectPath(new Identifier('h'), new Property('max')),