Add patch that ensures connection to template1 is closed after database restore.

This commit is contained in:
Albert Cervera i Areny 2015-04-26 08:47:26 +02:00
parent 60132db1ed
commit d2c692548c
2 changed files with 23 additions and 0 deletions

21
issue6241002_1.diff Normal file
View File

@ -0,0 +1,21 @@
# HG changeset patch
# User Albert Cervera i Areny <albert.nan.tic@gmail.com>
Close template1 connection on database restore.
Issue4717
review6241002
Index: trytond/trytond/backend/postgresql/database.py
===================================================================
--- a/trytond/trytond/backend/postgresql/database.py
+++ b/trytond/trytond/backend/postgresql/database.py
@@ -151,6 +151,7 @@
database.create(cursor, database_name)
cursor.commit()
cursor.close()
+ database.close()
cmd = ['pg_restore', '--no-owner']
env = {}

2
series
View File

@ -47,5 +47,7 @@ issue92001_42002_52002_wsgi_protocol.diff
check-vies-issue12101002.patch
stock_supply_production-performance-improvement.diff
issue6241002_1.diff
top.diff
issue15211002-sale-confirmed-to-done.diff