From: Oleg Broytman Date: Mon, 5 Sep 2016 20:17:42 +0000 (+0300) Subject: Remove processing from demo scripts X-Git-Tag: 0.0.5~7 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=30c39b60ae8289d0b974a4ebb767318773319867;p=sqlconvert.git Remove processing from demo scripts --- diff --git a/demo/group-file.py b/demo/group-file.py index 8d00507..87df331 100755 --- a/demo/group-file.py +++ b/demo/group-file.py @@ -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() diff --git a/demo/group-sql.py b/demo/group-sql.py index 101ab4a..11f1f8c 100755 --- a/demo/group-sql.py +++ b/demo/group-sql.py @@ -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() diff --git a/demo/parse-file.py b/demo/parse-file.py index bba6096..55a7829 100755 --- a/demo/parse-file.py +++ b/demo/parse-file.py @@ -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() diff --git a/demo/parse-sql.py b/demo/parse-sql.py index 99f8678..abf38ba 100755 --- a/demo/parse-sql.py +++ b/demo/parse-sql.py @@ -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()