Skip to content

Commit

Permalink
db_mananger: fix loading geometryless tables (fixes #10566)
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jun 12, 2014
1 parent d1e3dbc commit 85ce676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/db_manager/db_plugins/plugin.py
Expand Up @@ -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 "", "", uniqueCol.name if uniqueCol else "" )
uri.setDataSource(schema, self.name, geomCol if geomCol else None, uniqueCol.name if uniqueCol else "" )
return uri

def mimeUri(self):
Expand Down

0 comments on commit 85ce676

Please sign in to comment.