mirror of
https://github.com/OCA/server-backend.git
synced 2025-02-18 09:52:42 +02:00
[FIX] base_external_dbsource: Fix PQ connection
* Use `conn_string_full` in pg connection to fix #888
This commit is contained in:
@@ -296,7 +296,7 @@ class BaseExternalDbsource(models.Model):
|
||||
return connection.close()
|
||||
|
||||
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):
|
||||
return self._execute_generic(query, params, metadata)
|
||||
|
||||
Reference in New Issue
Block a user