]> git.phdru.name Git - sqlconvert.git/commitdiff
Refactor(process_mysql): Rename quoting_style -> dbname
authorOleg Broytman <phd@phdru.name>
Fri, 3 Nov 2017 22:31:18 +0000 (01:31 +0300)
committerOleg Broytman <phd@phdru.name>
Fri, 3 Nov 2017 22:31:18 +0000 (01:31 +0300)
sqlconvert/process_mysql.py

index 8dc43e2fdde46cdfb74e494bb450530da7aae108..e99ea79edc2816c57787f0578589a38bacea6173 100644 (file)
@@ -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: