mirror of https://github.com/dbcli/pgcli
don't try to spilt None - fixes AttributeError: 'NoneType' object has no attribute 'split' on special commands like \?
This commit is contained in:
parent
72ab7f6e87
commit
1e263f1a03
|
@ -283,6 +283,9 @@ def need_completion_refresh(sql):
|
|||
return False
|
||||
|
||||
def is_mutating(status):
|
||||
if not status:
|
||||
return False
|
||||
|
||||
mutating = ['insert', 'update', 'delete', 'alter', 'create', 'drop']
|
||||
return status.split(None, 1)[0].lower() in mutating
|
||||
|
||||
|
|
Loading…
Reference in New Issue