Merge remote-tracking branch 'origin/api-v1.8.2_for_upstream' into api-v1.8.2
This commit is contained in:
commit
680dd7b31e
1 changed files with 2 additions and 1 deletions
|
|
@ -147,7 +147,8 @@ class PostgresClient:
|
|||
self.cursor.close()
|
||||
except Exception as error:
|
||||
logging.error("Error while closing cursor for recreation", error)
|
||||
self.cursor = self.connection.cursor(cursor_factory=psycopg2.extras.RealDictCursor)
|
||||
self.cursor = None
|
||||
self.__enter__()
|
||||
|
||||
|
||||
def close():
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue