From f2d1da29949add586a655914c01afc0d44bf640c Mon Sep 17 00:00:00 2001 From: Taras Kopets Date: Mon, 2 Oct 2017 14:54:21 +0300 Subject: [PATCH] Display completions for upper cased aliases This commit fixes a bug when SQLTools did not show any completions when upper cased alias was used. Fixes #142 --- SQLToolsAPI/Completion.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SQLToolsAPI/Completion.py b/SQLToolsAPI/Completion.py index d9a5231..187be51 100644 --- a/SQLToolsAPI/Completion.py +++ b/SQLToolsAPI/Completion.py @@ -381,7 +381,7 @@ def _singleDotCompletions(self, prefix, identifiers, joinAlias=None): # we use set, as we are interested only in unique identifiers for ident in identifiers: - if ident.has_alias() and ident.alias == prefixParent: + if ident.has_alias() and ident.alias.lower() == prefixParent: if ident.is_query_alias: sqlQueryAliases.add(ident.alias)