From: Oleg Broytman Date: Wed, 3 Aug 2016 15:57:34 +0000 (+0300) Subject: Minor refactoring X-Git-Tag: 0.0.1~45 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=b1e2b16d0f2bbb3ba28e9d37a087e000c4dc0db5;p=sqlconvert.git Minor refactoring --- diff --git a/mysql2sql/process_tokens.py b/mysql2sql/process_tokens.py index c395b37..e9a62f8 100644 --- a/mysql2sql/process_tokens.py +++ b/mysql2sql/process_tokens.py @@ -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