Skip to content
Permalink
Browse files
[DB Manager] Fix No Geometry tables
Avoid to add a nonexistent 'geometry' field to the fields list of No Geometry tables.
  • Loading branch information
agiudiceandrea authored and nyalldawson committed May 15, 2021
1 parent 83a6908 commit ff592747482b5442284bcaa52017dd265ea9b931
Showing with 2 additions and 1 deletion.
  1. +2 −1 python/plugins/db_manager/db_plugins/vlayers/connector.py
@@ -251,7 +251,8 @@ def getTableFields(self, table):
n = l.dataProvider().fields().size()
f = [(i, f.name(), f.typeName(), False, None, False)
for i, f in enumerate(l.dataProvider().fields())]
f += [(n, "geometry", "geometry", False, None, False)]
if l.isSpatial():
f += [(n, "geometry", "geometry", False, None, False)]
return f

def getTableIndexes(self, table):

0 comments on commit ff59274

Please sign in to comment.