Skip to content

Commit

Permalink
Update python/plugins/db_manager/db_plugins/plugin.py
Browse files Browse the repository at this point in the history
Co-Authored-By: Ailurupoda <akwalith@gmail.com>
  • Loading branch information
elpaso and Ailurupoda committed Jan 11, 2019
1 parent 4011a8d commit 0fcb643
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/db_manager/db_plugins/plugin.py
Expand Up @@ -1096,7 +1096,7 @@ def definition(self):
return txt

def getComment(self):
# Function returning the comment of a field if exists
"""Returns the comment for a field"""
tab = self.table()
#SQL Query checking if a comment exists for the field
sql_cpt = u"Select count(*) from pg_description pd, pg_class pc, pg_attribute pa where relname = '%s' and attname = '%s' and pa.attrelid = pc.oid and pd.objoid = pc.oid and pd.objsubid = pa.attnum" % (tab.name, self.name)
Expand Down

0 comments on commit 0fcb643

Please sign in to comment.