]> git.phdru.name Git - sqlconvert.git/commitdiff
Minor refactoring
authorOleg Broytman <phd@phdru.name>
Wed, 3 Aug 2016 15:57:34 +0000 (18:57 +0300)
committerOleg Broytman <phd@phdru.name>
Wed, 3 Aug 2016 15:57:34 +0000 (18:57 +0300)
mysql2sql/process_tokens.py

index c395b37df0cd94bb1cb9b09df2f4b0fd21cd3583..e9a62f825a6d5625dcd6dfc2e03b2f150208a12b 100644 (file)
@@ -13,6 +13,7 @@ def requote_names(token_list):
                 value = token.value
                 if (value[0] == "`") and (value[-1] == "`"):
                     value = value[1:-1]
+                if value.islower():
                     token.normalized = token.value = value
-                if not value.islower():
+                else:
                     token.normalized = token.value = '"%s"' % value