diff --git a/pylib/dbx_psycopg.py b/pylib/dbx_psycopg.py index c38db0a..b61af44 100644 --- a/pylib/dbx_psycopg.py +++ b/pylib/dbx_psycopg.py @@ -102,8 +102,8 @@ def getConnectionString(self): parts.append("password='%s'" % self.password) if self.host and self.host != 'localhost': parts.append("host='%s'" % self.host) - if self.password: - parts.append("password='%s'" % self.password) + if self.port: + parts.append("port='%s'" % self.port) return " ".join(parts) def getConnectionDisplayValues(self):