Skip to content

Commit 8d79c1a

Browse files
committed
Fix comment reflection
1 parent dd05f12 commit 8d79c1a

File tree

1 file changed

+3
-0
lines changed
  • clickhouse_sqlalchemy/drivers

1 file changed

+3
-0
lines changed

clickhouse_sqlalchemy/drivers/base.py

+3
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,9 @@ def get_table_comment(self, connection, table_name, schema=None, **kw):
432432
if not self.supports_table_comment_reflection:
433433
raise NotImplementedError()
434434

435+
if not self.engine_reflection:
436+
return {}
437+
435438
database = schema if schema else connection.engine.url.database
436439

437440
query = text(

0 commit comments

Comments
 (0)