]> git.phdru.name Git - sqlconvert.git/blobdiff - demo/demo-process.py
Build(GHActions): Use `checkout@v4` instead of outdated `v2`
[sqlconvert.git] / demo / demo-process.py
index 2c93338c8e454064cb3b8d4747d0c5d38ea5bce9..1fe9809ffd59490f48616c8fa20e7b15950dd822 100755 (executable)
@@ -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: