Skip to content

Commit

Permalink
[dbmanager] Fixes #16533 and #16506
Browse files Browse the repository at this point in the history
  • Loading branch information
slarosa committed Nov 15, 2017
1 parent 9f0985f commit f1c3692
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/plugins/db_manager/db_plugins/postgis/info_model.py
Expand Up @@ -40,6 +40,7 @@ def connectionDetails(self):
class PGTableInfo(TableInfo):

def __init__(self, table):
super(PGTableInfo, self).__init__(table)
self.table = table

def generalInfo(self):
Expand Down Expand Up @@ -84,7 +85,7 @@ def generalInfo(self):
if table_priv[0]:
privileges.append("select")

if self.table.rowCount is not None or self.table.rowCount >= 0:
if self.table.rowCount is not None and self.table.rowCount >= 0:
tbl.append((QApplication.translate("DBManagerPlugin", "Rows (counted):"),
self.table.rowCount if self.table.rowCount is not None else QApplication.translate(
"DBManagerPlugin", 'Unknown (<a href="action:rows/count">find out</a>)')))
Expand Down

0 comments on commit f1c3692

Please sign in to comment.