Skip to content

Commit

Permalink
Consistently use inspector
Browse files Browse the repository at this point in the history
  • Loading branch information
pbugnion committed Dec 29, 2019
1 parent bbd495f commit d7d9a45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jupyterlab_sql/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def get_table_names(self, connection_url):
)
engine = self._get_engine(connection_url)
inspector = inspect(engine)
return engine.table_names() + inspector.get_view_names()
return inspector.get_table_names() + inspector.get_view_names()

def execute_query(self, connection_url, query):
engine = self._get_engine(connection_url)
Expand Down

0 comments on commit d7d9a45

Please sign in to comment.