Skip to content
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 Apr 29, 2021
1 parent 8a0f956 commit 96c75b867a8ad367cd8632b47a69dbe51a846204
Showing with 2 additions and 1 deletion.
  1. +2 −1 python/plugins/db_manager/db_plugins/vlayers/
@@ -251,7 +251,8 @@ def getTableFields(self, table):
n = l.dataProvider().fields().size()
f = [(i,, 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 96c75b8

Please sign in to comment.