1
0
Fork 0

fix schema-completion issue: self.schemata is a dataframe, supply self.schemata['schema'] instead

This commit is contained in:
Darik Gamble 2015-01-19 13:39:32 -05:00
parent 77df20f4ca
commit ab7edd955c
1 changed files with 3 additions and 2 deletions

View File

@ -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