Skip to content

Commit 2a0fe78

Browse files
Fix get_table_comment return value (#135)
Signed-off-by: Andras Sore <sore.andras@kodinformatika.hu>
1 parent e0db95f commit 2a0fe78

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

ibm_db_sa/reflection.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,7 @@ def get_table_comment(self, connection, table_name, schema=None, **kw):
238238
where(systbl.c.type == 'T').\
239239
where(systbl.c.tabschema == current_schema).\
240240
where(systbl.c.tabname == table_name)
241-
c = connection.execute(query)
242-
return {'text': c.first()}
241+
return {'text': connection.execute(query).scalar()}
243242

244243
@reflection.cache
245244
def get_view_names(self, connection, schema=None, **kw):

0 commit comments

Comments
 (0)