mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Another fix try
This commit is contained in:
parent
f27ecab62f
commit
832eb40166
@ -743,7 +743,7 @@ class PostGisDBConnector(DBConnector):
|
||||
self._commit()
|
||||
|
||||
def commentTable(self, schema, tablename, comment=None, db):
|
||||
if comment = None:
|
||||
if comment == None:
|
||||
db.connector._execute(None, 'COMMENT ON TABLE "{0}"."{1}" IS NULL;'.format(schema, tablename))
|
||||
else:
|
||||
db.connector._execute(None, 'COMMENT ON TABLE "{0}"."{1}" IS E\'{2}\';'.format(schema, tablename, comment))
|
||||
|
@ -582,7 +582,6 @@ class SpatiaLiteDBConnector(DBConnector):
|
||||
def addTableColumn(self, table, field_def):
|
||||
""" add a column to table """
|
||||
sql = u"ALTER TABLE %s ADD %s" % (self.quoteId(table), field_def)
|
||||
self._execute_and_commit(sql)
|
||||
self._execute(None, sql)
|
||||
|
||||
sql = u"SELECT InvalidateLayerStatistics(%s)" % (self.quoteId(table))
|
||||
|
Loading…
x
Reference in New Issue
Block a user