mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-16 00:03:12 -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()
|
uri = self.uri()
|
||||||
con = self.database().connector
|
con = self.database().connector
|
||||||
|
|
||||||
|
if uniqueCol is not None:
|
||||||
|
uniqueCol = uniqueCol.strip('"').replace('""', '"')
|
||||||
|
|
||||||
uri.setDataSource(u"", u"({}\n)".format(
|
uri.setDataSource(u"", u"({}\n)".format(
|
||||||
sql), geomCol, filter, uniqueCol.strip(u'"'))
|
sql), geomCol, filter, uniqueCol)
|
||||||
|
|
||||||
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