Skip to content
Permalink
Browse files

[processing] fixed handling of None param values in ogr2ogrtopostgis.py

Conflicts:
	python/plugins/processing/algs/gdal/ogr2ogrtopostgis.py
  • Loading branch information
volaya authored and alexbruy committed Oct 18, 2016
1 parent aeaef6f commit 63955e657448ad328ce205694028debd61f0c6ed
Showing with 7 additions and 7 deletions.
  1. +7 −7 python/plugins/processing/algs/gdal/ogr2ogrtopostgis.py
@@ -155,17 +155,17 @@ def defineCharacteristics(self):
self.tr('Additional creation options'), '', optional=True))

def getConnectionString(self):
host = str(self.getParameterValue(self.HOST))
port = str(self.getParameterValue(self.PORT))
user = str(self.getParameterValue(self.USER))
dbname = str(self.getParameterValue(self.DBNAME))
password = str(self.getParameterValue(self.PASSWORD))
schema = str(self.getParameterValue(self.SCHEMA))
host = self.getParameterValue(self.HOST)
port = self.getParameterValue(self.PORT)
user = self.getParameterValue(self.USER)
dbname = self.getParameterValue(self.DBNAME)
password = self.getParameterValue(self.PASSWORD)
schema = self.getParameterValue(self.SCHEMA)
arguments = []
if host:
arguments.append('host=' + host)
if port:
arguments.append('port=' + port)
arguments.append('port=' + str(port))
if dbname:
arguments.append('dbname=' + dbname)
if password:

0 comments on commit 63955e6

Please sign in to comment.
You can’t perform that action at this time.