Skip to content

Commit

Permalink
Add missing cache annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicoretti committed May 17, 2022
1 parent 7ced605 commit 17937e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sqlalchemy_exasol/pyodbc.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ def get_view_definition(self, connection, view_name, schema=None, **kw):
result = connection.execute(sql.text(sql_statement)).scalar()
return result if result else None

@reflection.cache
def get_table_names(self, connection, schema, **kw):
if self._is_sql_fallback_requested(**kw):
return super().get_table_names(connection, schema, **kw)
Expand Down

0 comments on commit 17937e4

Please sign in to comment.