Skip to content

Commit 901c764

Browse files
committedDec 16, 2014
[processing] fixed handling of source strings in ogr algorithms
1 parent 9fbcc7e commit 901c764

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎python/plugins/processing/algs/gdal/OgrAlgorithm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ def ogrConnectionString(self, uri):
6565
s = re.sub(''' sslmode=.+''', '', unicode(layer.source()))
6666
ogrstr = 'PG:%s' % s
6767
else:
68-
ogrstr = unicode(layer.source())
69-
return ogrstr
68+
ogrstr = unicode(layer.source()).split("|")[0]
69+
return '"' + ogrstr + '"'
7070

7171
def ogrLayerName(self, uri):
7272
if 'host' in uri:

0 commit comments

Comments
 (0)
Please sign in to comment.