We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
See this example snippet:
>>> format_sql.format_sql('''select a.a from aaa a where ((a.b+1) = 2);''') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/koerner/miniconda3/envs/tests-sql/lib/python3.6/site-packages/format_sql/shortcuts.py", line 20, in format_sql parsed = list(parse(tokens)) File "/home/koerner/miniconda3/envs/tests-sql/lib/python3.6/site-packages/format_sql/parser.py", line 762, in parse for statement, unused_count in _parse(toks): File "/home/koerner/miniconda3/envs/tests-sql/lib/python3.6/site-packages/format_sql/parser.py", line 756, in _parse statement, count = func(toks) File "/home/koerner/miniconda3/envs/tests-sql/lib/python3.6/site-packages/format_sql/parser.py", line 596, in _parse_where conditions, j = _parse_conditions(toks[1:]) File "/home/koerner/miniconda3/envs/tests-sql/lib/python3.6/site-packages/format_sql/parser.py", line 701, in _parse_conditions raise InvalidCondition() format_sql.parser.InvalidCondition
It seems that all (most?) queries with the following conditions <table>.<column> + 1 = <some other value> fail to parse:
<table>.<column> + 1 = <some other value>
select a.a from aaa a where a.b+1 = 2;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
See this example snippet:
It seems that all (most?) queries with the following conditions
<table>.<column> + 1 = <some other value>
fail to parse:The text was updated successfully, but these errors were encountered: