Skip to content

Commit

Permalink
Display completions for upper cased aliases
Browse files Browse the repository at this point in the history
This commit fixes a bug when SQLTools did not show any completions
when upper cased alias was used.
Fixes mtxr#142
  • Loading branch information
tkopets committed Oct 2, 2017
1 parent 072301e commit f2d1da2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SQLToolsAPI/Completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit f2d1da2

Please sign in to comment.