Skip to content
Permalink
Browse files

dbmanager: fix adding views to canvas (fixes #10688)

  • Loading branch information
jef-n committed Jun 24, 2014
1 parent 10d0ac0 commit 1949fd758573c3629eb41cd94a1b5cec3f3e7ef5
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/db_manager/db_plugins/plugin.py
@@ -554,7 +554,7 @@ def uri(self):
schema = self.schemaName() if self.schemaName() else ''
geomCol = self.geomColumn if self.type in [Table.VectorType, Table.RasterType] else ""
uniqueCol = self.getValidQGisUniqueFields(True) if self.isView else None
uri.setDataSource(schema, self.name, geomCol if geomCol else None, uniqueCol.name if uniqueCol else "" )
uri.setDataSource(schema, self.name, geomCol if geomCol else None, None, uniqueCol.name if uniqueCol else "" )
return uri

def mimeUri(self):

0 comments on commit 1949fd7

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