]> git.phdru.name Git - sqlconvert.git/commitdiff
Remove processing from demo scripts
authorOleg Broytman <phd@phdru.name>
Mon, 5 Sep 2016 20:17:42 +0000 (23:17 +0300)
committerOleg Broytman <phd@phdru.name>
Mon, 5 Sep 2016 20:17:42 +0000 (23:17 +0300)
demo/group-file.py
demo/group-sql.py
demo/parse-file.py
demo/parse-sql.py

index 8d00507f1a34c9e7a1712e8df0d9a434135e7b82..87df331349a645e1aef088accbfabd5ef4659fcb 100755 (executable)
@@ -3,7 +3,6 @@ from __future__ import print_function
 
 import sys
 from sqlconvert.print_tokens import print_tokens
-from sqlconvert.process_mysql import process_statement
 from sqlconvert.process_tokens import find_error, StatementGrouper
 
 
@@ -17,7 +16,6 @@ def main(filename):
                     print("----------")
                     if find_error(statement):
                         print("ERRORS IN QUERY")
-                    process_statement(statement)
                     print_tokens(statement, encoding='utf-8')
                     print()
                     statement._pprint_tree()
index 101ab4a2a4b12c52d979808d963d7cf81fedd5bc..11f1f8cd002869745cd4b980856180016dceb249 100755 (executable)
@@ -3,7 +3,6 @@ from __future__ import print_function
 
 import sys
 from sqlconvert.print_tokens import print_tokens
-from sqlconvert.process_mysql import process_statement
 from sqlconvert.process_tokens import find_error, StatementGrouper
 
 
@@ -16,7 +15,6 @@ def main(*queries):
                 print("----------")
                 if find_error(statement):
                     print("ERRORS IN QUERY")
-                process_statement(statement)
                 print_tokens(statement, encoding='utf-8')
                 print()
                 statement._pprint_tree()
index bba609618fb1c168940c120de826176b19137276..55a78296a67b48207ee822545a783c053f76fd86 100755 (executable)
@@ -4,7 +4,6 @@ from __future__ import print_function
 import sys
 from sqlparse import parse
 from sqlconvert.print_tokens import print_tokens
-from sqlconvert.process_mysql import process_statement
 from sqlconvert.process_tokens import find_error
 
 
@@ -15,7 +14,6 @@ def main(filename):
                 print("----------")
                 if find_error(parsed):
                     print("ERRORS IN QUERY")
-                process_statement(parsed)
                 print_tokens(parsed, encoding='utf-8')
                 print()
                 parsed._pprint_tree()
index 99f8678e9aded727593f96a35bec129cce7dc3f3..abf38ba3d2e099d1d0f06dd6c221141f4e9353dc 100755 (executable)
@@ -4,7 +4,6 @@ from __future__ import print_function
 import sys
 from sqlparse import parse
 from sqlconvert.print_tokens import print_tokens
-from sqlconvert.process_mysql import process_statement
 from sqlconvert.process_tokens import find_error
 
 
@@ -14,7 +13,6 @@ def main(*queries):
             print("----------")
             if find_error(parsed):
                 print("ERRORS IN QUERY")
-            process_statement(parsed)
             print_tokens(parsed, encoding='utf-8')
             print()
             parsed._pprint_tree()