From b1e2b16d0f2bbb3ba28e9d37a087e000c4dc0db5 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 3 Aug 2016 18:57:34 +0300 Subject: [PATCH] Minor refactoring --- mysql2sql/process_tokens.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.5