Skip to content

Commit

Permalink
Update building
Browse files Browse the repository at this point in the history
  • Loading branch information
corentin.falcone committed Jan 11, 2019
1 parent 94784a5 commit 7852a7a
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion python/plugins/db_manager/db_plugins/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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) """
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/db_manager/db_plugins/postgis/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
2 changes: 1 addition & 1 deletion python/plugins/db_manager/db_plugins/postgis/info_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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. "
Expand Down
1 change: 0 additions & 1 deletion python/plugins/db_manager/db_plugins/postgis/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,6 @@ def delete(self):
self.deleted.emit()
return ret


class PGVectorTable(PGTable, VectorTable):

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

0 comments on commit 7852a7a

Please sign in to comment.