mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-16 00:06:09 -05:00
[DB Manager] Fix No Geometry tables
Avoid to add a nonexistent 'geometry' field to the fields list of No Geometry tables.
This commit is contained in:
parent
2538612a21
commit
828638f661
@ -251,7 +251,8 @@ class VLayerConnector(DBConnector):
|
|||||||
n = l.dataProvider().fields().size()
|
n = l.dataProvider().fields().size()
|
||||||
f = [(i, f.name(), f.typeName(), False, None, False)
|
f = [(i, f.name(), f.typeName(), False, None, False)
|
||||||
for i, f in enumerate(l.dataProvider().fields())]
|
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
|
return f
|
||||||
|
|
||||||
def getTableIndexes(self, table):
|
def getTableIndexes(self, table):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user