mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
Correct bug from postgres comment using quote or caps
This commit is contained in:
parent
f2b2e96115
commit
d87843c2c3
@ -878,7 +878,7 @@ class PostGisDBConnector(DBConnector):
|
||||
if comment is None:
|
||||
self._execute(None, 'COMMENT ON TABLE "{0}"."{1}" IS NULL;'.format(schema, tablename))
|
||||
else:
|
||||
self._execute(None, 'COMMENT ON TABLE "{0}"."{1}" IS E\'{2}\';'.format(schema, tablename, comment))
|
||||
self._execute(None, 'COMMENT ON TABLE "{0}"."{1}" IS $escape${2}$escape$;'.format(schema, tablename, comment))
|
||||
|
||||
def getComment(self, tablename, field):
|
||||
"""Returns the comment for a field"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user