Skip to content

Commit f1c3692

Browse files
committed
[dbmanager] Fixes #16533 and #16506
1 parent 9f0985f commit f1c3692

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/plugins/db_manager/db_plugins/postgis/info_model.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ def connectionDetails(self):
4040
class PGTableInfo(TableInfo):
4141

4242
def __init__(self, table):
43+
super(PGTableInfo, self).__init__(table)
4344
self.table = table
4445

4546
def generalInfo(self):
@@ -84,7 +85,7 @@ def generalInfo(self):
8485
if table_priv[0]:
8586
privileges.append("select")
8687

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

0 commit comments

Comments
 (0)