X-Git-Url: https://git.phdru.name/?p=sqlconvert.git;a=blobdiff_plain;f=demo%2Fparse-sql.py;h=e4be365fc8eed012ea8cda8b490d91f4ff7651d8;hp=1cbe0a11e8632f35c6a986db3a9acbe53f24b5d2;hb=86cace63e9bc60457f310bc77aba8fc54b748bbe;hpb=dbc9220a2b29725f94637607f8d8b00c762deb67 diff --git a/demo/parse-sql.py b/demo/parse-sql.py index 1cbe0a1..e4be365 100755 --- a/demo/parse-sql.py +++ b/demo/parse-sql.py @@ -4,7 +4,7 @@ from __future__ import print_function import sys from sqlparse import parse from sqlconvert.print_tokens import print_tokens -from sqlconvert.process_mysql import requote_names +from sqlconvert.process_mysql import process_statement from sqlconvert.process_tokens import find_error @@ -14,7 +14,7 @@ def main(*queries): print("----------") if find_error(parsed): print("ERRORS IN QUERY") - requote_names(parsed) + process_statement(parsed) print_tokens(parsed) print() parsed._pprint_tree()