mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
DBManager oracle plugin: strip '"' on unique col
For Oracle provider, giving a quoted uniqueColumn in a uri to create a QgsVectorLayer results in an invalid layer. To fix it, strip '"' is applied to unique col.
This commit is contained in:
parent
91b0e7f3b4
commit
f5373ac3b9
@ -203,7 +203,7 @@ class ORDatabase(Database):
|
||||
uri = self.uri()
|
||||
con = self.database().connector
|
||||
|
||||
uri.setDataSource(u"", u"({})".format(sql), geomCol, filter, uniqueCol)
|
||||
uri.setDataSource(u"", u"({})".format(sql), geomCol, filter, uniqueCol.strip(u'"'))
|
||||
if avoidSelectById:
|
||||
uri.disableSelectAtId(True)
|
||||
provider = self.dbplugin().providerName()
|
||||
|
Loading…
x
Reference in New Issue
Block a user