File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
python/plugins/db_manager/db_plugins/postgis Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ def connectionDetails(self):
4040class 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>)' )))
You can’t perform that action at this time.
0 commit comments