diff --git a/ibm_db_sa/reflection.py b/ibm_db_sa/reflection.py index 304c573..f90f835 100644 --- a/ibm_db_sa/reflection.py +++ b/ibm_db_sa/reflection.py @@ -238,8 +238,7 @@ def get_table_comment(self, connection, table_name, schema=None, **kw): where(systbl.c.type == 'T').\ where(systbl.c.tabschema == current_schema).\ where(systbl.c.tabname == table_name) - c = connection.execute(query) - return {'text': c.first()} + return {'text': connection.execute(query).scalar()} @reflection.cache def get_view_names(self, connection, schema=None, **kw):