processing: fix interpretation of oracle layers (take II; followup f0daab9)

This commit is contained in:
Juergen E. Fischer 2015-05-12 21:39:48 +02:00
parent d855eabc33
commit 31843a78ee

View File

@ -83,14 +83,14 @@ class OgrAlgorithm(GdalAlgorithm):
if dsUri.username() != "":
ogrstr += dsUri.username()
if dsUri.password() != "":
ogr += "/" + dsUri.password()
ogrstr += "/" + dsUri.password()
delim = "@"
if dsUri.host() != "":
ogrstr += delim + dsUri.host()
delim = ""
if dsUri.port() != "" and dsUri.port() != 1521:
ogrstr += ":%d" % dsUri.port()
if dsUri.port() != "" and dsUri.port() != '1521':
ogrstr += ":" + dsUri.port()
ogrstr += "/"
if dsUri.database() != "":
ogrstr += dsUri.database()