Skip to content

Commit

Permalink
Fix get_table_comment return value (#135)
Browse files Browse the repository at this point in the history
Signed-off-by: Andras Sore <[email protected]>
  • Loading branch information
andrasore-kodinfo authored Jul 4, 2023
1 parent e0db95f commit 2a0fe78
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ibm_db_sa/reflection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 2a0fe78

Please sign in to comment.