Skip to content

Commit 1949fd7

Browse files
committed
dbmanager: fix adding views to canvas (fixes #10688)
1 parent 10d0ac0 commit 1949fd7

File tree

1 file changed

+1
-1
lines changed
  • python/plugins/db_manager/db_plugins

1 file changed

+1
-1
lines changed

python/plugins/db_manager/db_plugins/plugin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ def uri(self):
554554
schema = self.schemaName() if self.schemaName() else ''
555555
geomCol = self.geomColumn if self.type in [Table.VectorType, Table.RasterType] else ""
556556
uniqueCol = self.getValidQGisUniqueFields(True) if self.isView else None
557-
uri.setDataSource(schema, self.name, geomCol if geomCol else None, uniqueCol.name if uniqueCol else "" )
557+
uri.setDataSource(schema, self.name, geomCol if geomCol else None, None, uniqueCol.name if uniqueCol else "" )
558558
return uri
559559

560560
def mimeUri(self):

0 commit comments

Comments
 (0)