Skip to content
Permalink
Browse files

back port of #7849 to 3.2

  • Loading branch information
mbernasocchi committed Sep 10, 2018
1 parent 4bf5d4d commit 03e4c07054b00367d6cb5367fca9fe3ef25e87e7
Showing with 2 additions and 4 deletions.
  1. +2 −4 python/plugins/db_manager/db_plugins/vlayers/connector.py
@@ -250,16 +250,14 @@ def getRasterTables(self, schema=None):
return []

def getTableRowCount(self, table):
t = table[1]
l = VLayerRegistry.instance().getLayer(t)
l = VLayerRegistry.instance().getLayer(table)
if not l or not l.isValid():
return None
return l.featureCount()

def getTableFields(self, table):
""" return list of columns in table """
t = table[1]
l = VLayerRegistry.instance().getLayer(t)
l = VLayerRegistry.instance().getLayer(table)
if not l or not l.isValid():
return []
# id, name, type, nonnull, default, pk

0 comments on commit 03e4c07

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