mozilla/moz-sql-parser

"&" operator parse exception

Closed this issue · 1 comments

hhyo commented

version info

python 3.6.5
mo-future-3.17.19324 moz-sql-parser-3.18.19324 pyparsing-2.3.1

sql

sql = """SELECT * FROM t WHERE  c & 4;"""

parse(sql)

  File "/Users/venv/lib/python3.6/site-packages/moz_sql_parser/__init__.py", line 53, in parse
    raise ParseException(sql, e.loc, "Expecting one of (" + (", ".join(expecting)) + ")")
pyparsing.ParseException: Expecting one of (div, eq, in, union all, mul, gte, not between, limit, collate nocase, gt, add, having, offset, is, lte, neq, nlike, sub, like, order by, between, group by, nin, or, concat, lt) (at char 58), (line:1, col:59)