Update building

This commit is contained in:
corentin.falcone 2019-01-11 11:56:01 +01:00
parent 94784a5cf8
commit 7852a7a71a
4 changed files with 2 additions and 4 deletions

View File

@ -1140,7 +1140,6 @@ class TableField(TableSubItemObject):
return ret
class TableConstraint(TableSubItemObject):
""" class that represents a constraint of a table (relation) """

View File

@ -899,7 +899,7 @@ class PostGisDBConnector(DBConnector):
if comment is not None:
schema, tablename = self.getSchemaTableName(table)
sql = u"COMMENT ON COLUMN %s.%s.%s is '%s'" % (schema, tablename, column, comment)
self._execute(c, sql)
self._execute(c, sql)
self._commit()

View File

@ -110,7 +110,7 @@ class PGTableInfo(TableInfo):
if not self.table.isView:
if self.table.rowCount is not None:
if abs(self.table.estimatedRowCount - self.table.rowCount) > 1 and \
(self.table.estimatedRowCount > 2 * self.table.rowCount
(self.table.estimatedRowCount > 2 * self.table.rowCount
or self.table.rowCount > 2 * self.table.estimatedRowCount):
ret.append(HtmlParagraph(QApplication.translate("DBManagerPlugin",
"<warning> There's a significant difference between estimated and real row count. "

View File

@ -281,7 +281,6 @@ class PGTable(Table):
self.deleted.emit()
return ret
class PGVectorTable(PGTable, VectorTable):
def __init__(self, row, db, schema=None):