Merge branch 'api-v1.8.2_for_upstream' into api-v1.8.2
This commit is contained in:
commit
82da0e1234
1 changed files with 7 additions and 0 deletions
|
|
@ -141,6 +141,13 @@ class PostgresClient:
|
|||
and not self.unlimited_query:
|
||||
postgreSQL_pool.putconn(self.connection)
|
||||
|
||||
def recreate_cursor(self):
|
||||
try:
|
||||
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)
|
||||
|
||||
|
||||
def close():
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue