]> git.phdru.name Git - sqlconvert.git/commitdiff
Reorder processing
authorOleg Broytman <phd@phdru.name>
Fri, 30 Sep 2016 19:12:20 +0000 (22:12 +0300)
committerOleg Broytman <phd@phdru.name>
Fri, 30 Sep 2016 19:12:20 +0000 (22:12 +0300)
sqlconvert/process_mysql.py

index 9bfef92de598c09c68f99623d1b2cdd1de157273..0320b7f30e794886624ebbb6d4a0df5993d2f671 100644 (file)
@@ -71,9 +71,9 @@ def unescape_strings(token_list):
 
 
 def process_statement(statement, quoting_style='sqlite'):
-    remove_directive_tokens(statement)
     requote_names(statement)
     unescape_strings(statement)
+    remove_directive_tokens(statement)
     escape_strings(statement, quoting_style)
     yield statement
     return