fix shunting yard
This commit is contained in:
parent
3a776ca1e1
commit
b2de794ef1
1 changed files with 1 additions and 0 deletions
|
@ -83,6 +83,7 @@ describe('where operators', () => {
|
||||||
|
|
||||||
describe('WHERE keyword', () => {
|
describe('WHERE keyword', () => {
|
||||||
it('handles complex filters', () => {
|
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]) => {
|
assert.parseOk(whereClause, 'WHERE h.max > 500 AND (h.current < 250 OR a.value = 10) OR a.value <= 2', ([actual]) => {
|
||||||
const expected = [
|
const expected = [
|
||||||
new ObjectPath(new Identifier('h'), new Property('max')),
|
new ObjectPath(new Identifier('h'), new Property('max')),
|
||||||
|
|
Loading…
Reference in a new issue