mirror of https://github.com/dbcli/pgcli
fix schema-completion issue: self.schemata is a dataframe, supply self.schemata['schema'] instead
This commit is contained in:
parent
77df20f4ca
commit
ab7edd955c
|
@ -155,8 +155,9 @@ class PGCompleter(Completer):
|
|||
completions.extend(funcs)
|
||||
|
||||
elif suggestion['type'] == 'schema':
|
||||
schemata = self.find_matches(word_before_cursor, self.schemata)
|
||||
completions.extend(schemata)
|
||||
schema_names = self.schemata['schema']
|
||||
schema_names = self.find_matches(word_before_cursor, schema_names)
|
||||
completions.extend(schema_names)
|
||||
|
||||
elif suggestion['type'] == 'table':
|
||||
meta = self.tables
|
||||
|
|
Loading…
Reference in New Issue