Skip to content
Permalink
Browse files

fixes #34774 - python 2to3 related bug

  • Loading branch information
Raul Bezerra Barbosa authored and rouault committed Feb 28, 2020
1 parent 399dc62 commit 7fe174266d9bbbe4a9a9fd287e74a2663e074d37
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/db_manager/db_plugins/oracle/info_model.py
@@ -142,7 +142,7 @@ def generalInfo(self):
"DBManagerPlugin", "Rows (estimation):"),
self.table.estimatedRowCount)
)
if self.table.rowCount or self.table.rowCount >= 0:
if self.table.rowCount is not None and self.table.rowCount >= 0:
# Add a real count of rows
tbl.append(
(QApplication.translate("DBManagerPlugin", "Rows (counted):"),
@@ -624,7 +624,7 @@ def spatialInfo(self):
if self.table.extent and len(self.table.extent) == 4:
extent_str = (u"{:.9f}, {:.9f} - {:.9f}, "
u"{:.9f}".format(*self.table.extent))
elif self.table.rowCount > 0 or self.table.estimatedRowCount > 0:
elif (self.table.rowCount is not None and self.table.rowCount > 0) or (self.table.estimatedRowCount is not None and self.table.estimatedRowCount > 0):
# Can't calculate an extent on empty layer
extent_str = QApplication.translate(
"DBManagerPlugin",

0 comments on commit 7fe1742

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