From: Oleg Broytman Date: Fri, 3 Nov 2017 22:31:18 +0000 (+0300) Subject: Refactor(process_mysql): Rename quoting_style -> dbname X-Git-Tag: 0.2.3~37 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=843981ca5ac41be09212f3aa427500580a6e9f5c;p=sqlconvert.git Refactor(process_mysql): Rename quoting_style -> dbname --- diff --git a/sqlconvert/process_mysql.py b/sqlconvert/process_mysql.py index 8dc43e2..e99ea79 100644 --- a/sqlconvert/process_mysql.py +++ b/sqlconvert/process_mysql.py @@ -141,11 +141,11 @@ def split_ext_insert(statement): yield statement -def process_statement(statement, quoting_style='sqlite'): +def process_statement(statement, dbname='sqlite'): requote_names(statement) unescape_strings(statement) remove_directive_tokens(statement) - escape_strings(statement, quoting_style) + escape_strings(statement, dbname) try: is_insert = get_DML_type(statement) == 'INSERT' except ValueError: