Skip to content
Permalink
Browse files
Merge pull request #3574 from mbernasocchi/master
[processing] fix save to postgis table
  • Loading branch information
alexbruy committed Oct 6, 2016
2 parents dcdf91b + 7c59e41 commit 9a9df32cca940b8930077e831aab6ac537ce1265
Showing with 2 additions and 1 deletion.
  1. +2 −1 python/plugins/processing/tools/postgis.py
@@ -186,6 +186,7 @@ def __init__(self, host=None, port=None, dbname=None, user=None,
passwd=None, service=None, uri=None):
# Regular expression for identifiers without need to quote them
self.re_ident_ok = re.compile(r"^\w+$")
port = str(port)

if uri:
self.uri = uri
@@ -199,7 +200,7 @@ def __init__(self, host=None, port=None, dbname=None, user=None,
conninfo = self.uri.connectionInfo(False)
err = None
for i in range(4):
expandedConnInfo = uri.connectionInfo(True)
expandedConnInfo = self.uri.connectionInfo(True)
try:
self.con = psycopg2.connect(expandedConnInfo.encode('utf-8'))
if err is not None:

0 comments on commit 9a9df32

Please sign in to comment.