mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
[Bugfix] DB Mananger: Fix in Oracle plugin the way to strip uniqueCol
This commit is contained in:
parent
248af94ba9
commit
7362faca02
@ -203,8 +203,12 @@ class ORDatabase(Database):
|
||||
uri = self.uri()
|
||||
con = self.database().connector
|
||||
|
||||
if uniqueCol is not None:
|
||||
uniqueCol = uniqueCol.strip('"').replace('""', '"')
|
||||
|
||||
uri.setDataSource(u"", u"({}\n)".format(
|
||||
sql), geomCol, filter, uniqueCol.strip(u'"'))
|
||||
sql), geomCol, filter, uniqueCol)
|
||||
|
||||
if avoidSelectById:
|
||||
uri.disableSelectAtId(True)
|
||||
provider = self.dbplugin().providerName()
|
||||
|
Loading…
x
Reference in New Issue
Block a user