Skip to content

Commit 3bead6d

Browse files
committed
fix get_table_comment to work for views
Fixes #171
1 parent 894c608 commit 3bead6d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

ibm_db_sa/reflection.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,6 @@ def get_table_comment(self, connection, table_name, schema=None, **kw):
235235
table_name = self.denormalize_name(table_name)
236236
systbl = self.sys_tables
237237
query = sql.select(systbl.c.remarks).\
238-
where(systbl.c.type == 'T').\
239238
where(systbl.c.tabschema == current_schema).\
240239
where(systbl.c.tabname == table_name)
241240
return {'text': connection.execute(query).scalar()}

0 commit comments

Comments
 (0)