Skip to content
Permalink
Browse files

Update building

  • Loading branch information
corentin.falcone
corentin.falcone committed Jan 11, 2019
1 parent 94784a5 commit 7852a7a71a3f697ede19122e6050c17d2a71f8b2
@@ -1140,7 +1140,6 @@ def update(self, new_name, new_type_str=None, new_not_null=None, new_default_str
return ret



class TableConstraint(TableSubItemObject):

""" class that represents a constraint of a table (relation) """
@@ -899,7 +899,7 @@ def updateTableColumn(self, table, column, new_name=None, data_type=None, not_nu
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()

@@ -110,7 +110,7 @@ def generalInfo(self):
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. "
@@ -281,7 +281,6 @@ def delete(self):
self.deleted.emit()
return ret


class PGVectorTable(PGTable, VectorTable):

def __init__(self, row, db, schema=None):

0 comments on commit 7852a7a

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