import sys
from sqlconvert.print_tokens import print_tokens
-from sqlconvert.process_mysql import process_statement
from sqlconvert.process_tokens import find_error, StatementGrouper
print("----------")
if find_error(statement):
print("ERRORS IN QUERY")
- process_statement(statement)
print_tokens(statement, encoding='utf-8')
print()
statement._pprint_tree()
import sys
from sqlconvert.print_tokens import print_tokens
-from sqlconvert.process_mysql import process_statement
from sqlconvert.process_tokens import find_error, StatementGrouper
print("----------")
if find_error(statement):
print("ERRORS IN QUERY")
- process_statement(statement)
print_tokens(statement, encoding='utf-8')
print()
statement._pprint_tree()
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
print("----------")
if find_error(parsed):
print("ERRORS IN QUERY")
- process_statement(parsed)
print_tokens(parsed, encoding='utf-8')
print()
parsed._pprint_tree()
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
print("----------")
if find_error(parsed):
print("ERRORS IN QUERY")
- process_statement(parsed)
print_tokens(parsed, encoding='utf-8')
print()
parsed._pprint_tree()