X-Git-Url: https://git.phdru.name/?p=sqlconvert.git;a=blobdiff_plain;f=demo%2Fdemo-process.py;h=a81f93ef1787cf1bae3658fa1a82a1ac757e8365;hp=2c93338c8e454064cb3b8d4747d0c5d38ea5bce9;hb=HEAD;hpb=aff066ceefb79333878baaf7c16e0a2206d26c5d diff --git a/demo/demo-process.py b/demo/demo-process.py index 2c93338..1fe9809 100755 --- a/demo/demo-process.py +++ b/demo/demo-process.py @@ -15,10 +15,10 @@ def process_lines(*lines): print("----- -----") if find_error(statement): print("ERRORS IN QUERY") - process_statement(statement) - print_tokens(statement, encoding='utf-8') - print() - statement._pprint_tree() + for _statement in process_statement(statement): + print_tokens(_statement, encoding='utf-8') + print() + _statement._pprint_tree() print("-----/-----") tokens = grouper.close() if tokens: