Skip to content
Permalink
Browse files

Another fix try

  • Loading branch information
Ailurupoda committed Feb 7, 2019
1 parent f27ecab commit 832eb40166af85a7bbd9130e73abc8d65f79d187
@@ -743,7 +743,7 @@ def renameTable(self, table, new_table):
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 @@ def getComment(self, tablename, field, db):
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))

0 comments on commit 832eb40

Please sign in to comment.
You can’t perform that action at this time.