mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-03 00:02:25 -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:
|
if comment is None:
|
||||||
self._execute(None, 'COMMENT ON TABLE "{0}"."{1}" IS NULL;'.format(schema, tablename))
|
self._execute(None, 'COMMENT ON TABLE "{0}"."{1}" IS NULL;'.format(schema, tablename))
|
||||||
else:
|
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):
|
def getComment(self, tablename, field):
|
||||||
"""Returns the comment for a field"""
|
"""Returns the comment for a field"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user