Browse Source

[FIX] base_external_dbsource: Fix PQ connection

* Use `conn_string_full` in pg connection to fix #888
pull/895/head
Dave Lasley 7 years ago
parent
commit
404a301e06
No known key found for this signature in database GPG Key ID: 7DDBA4BA81B934CF
  1. 2
      base_external_dbsource/models/base_external_dbsource.py

2
base_external_dbsource/models/base_external_dbsource.py

@ -296,7 +296,7 @@ class BaseExternalDbsource(models.Model):
return connection.close() return connection.close()
def connection_open_postgresql(self): def connection_open_postgresql(self):
return psycopg2.connect(self.conn_string)
return psycopg2.connect(self.conn_string_full)
def execute_postgresql(self, query, params, metadata): def execute_postgresql(self, query, params, metadata):
return self._execute_generic(query, params, metadata) return self._execute_generic(query, params, metadata)

Loading…
Cancel
Save