Skip to content

Commit

Permalink
[processing] fixed handling of source strings in ogr algorithms
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Dec 16, 2014
1 parent 9fbcc7e commit 901c764
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/gdal/OgrAlgorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ def ogrConnectionString(self, uri):
s = re.sub(''' sslmode=.+''', '', unicode(layer.source()))
ogrstr = 'PG:%s' % s
else:
ogrstr = unicode(layer.source())
return ogrstr
ogrstr = unicode(layer.source()).split("|")[0]
return '"' + ogrstr + '"'

def ogrLayerName(self, uri):
if 'host' in uri:
Expand Down

0 comments on commit 901c764

Please sign in to comment.