Skip to content
Permalink
Browse files

[dbmanager] Fixes #16533 and #16506

  • Loading branch information
slarosa committed Nov 15, 2017
1 parent 9f0985f commit f1c3692f6adfe8316c2ade7508f28fbe26407286
Showing with 2 additions and 1 deletion.
  1. +2 −1 python/plugins/db_manager/db_plugins/postgis/info_model.py
@@ -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):
@@ -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>)')))

0 comments on commit f1c3692

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