From 60c9677bc9afee604454f8923a1404dbc3863802 Mon Sep 17 00:00:00 2001 From: Kevin Schmeichel Date: Thu, 8 Aug 2024 08:12:54 -1000 Subject: [PATCH] Fix an issue with casing of completions --- mycli/sqlcompleter.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mycli/sqlcompleter.py b/mycli/sqlcompleter.py index 807e88f5..2afbe28b 100644 --- a/mycli/sqlcompleter.py +++ b/mycli/sqlcompleter.py @@ -370,6 +370,9 @@ def find_matches(text, collection, start_only=False, fuzzy=True, casing=None): in the collection of available completions. """ + if not text: + casing = None + if casing == 'auto': casing = 'lower' if text and text[-1].islower() else 'upper'