1
0
Fork 0

fixes need_completion_refresh case-sensitive comparison

This commit is contained in:
Daniel Schwarz 2015-01-08 16:56:07 +01:00
parent bf14e997ad
commit 750218cebc
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ def cli(database, user, password, host, port):
def need_completion_refresh(sql):
try:
first_token = sql.split()[0]
return first_token in ('alter', 'create', 'use', '\c', 'drop')
return first_token.lower() in ('alter', 'create', 'use', '\c', 'drop')
except Exception:
return False