diff --git a/bin/service/web_services.py b/bin/service/web_services.py index 7719caa063f..19b178c7caa 100644 --- a/bin/service/web_services.py +++ b/bin/service/web_services.py @@ -261,6 +261,7 @@ class db(netsvc.ExportService): db = sql_db.db_connect('template1') cr = db.cursor() + cr.autocommit(True) # avoid transaction block try: try: cr.execute('ALTER DATABASE "%s" RENAME TO "%s"' % (old_name, new_name))