mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-17 00:04:02 -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()
|
uri = self.uri()
|
||||||
con = self.database().connector
|
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:
|
if avoidSelectById:
|
||||||
uri.disableSelectAtId(True)
|
uri.disableSelectAtId(True)
|
||||||
provider = self.dbplugin().providerName()
|
provider = self.dbplugin().providerName()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user