From: Tony Mack Date: Tue, 14 Nov 2006 22:08:31 +0000 (+0000) Subject: - reconnect to db after utf8 encoding X-Git-Tag: pycurl-7_13_1~308 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=6637dca8e74436d68989b9d055ac43a08c0907c6;p=plcapi.git - reconnect to db after utf8 encoding --- diff --git a/tools/upgrade-db.py b/tools/upgrade-db.py index d7ceaa50..d307045d 100755 --- a/tools/upgrade-db.py +++ b/tools/upgrade-db.py @@ -318,13 +318,16 @@ try: if os.system(recreate_cmd): print "ERROR: database encoding failed. Aborting" sys.exit(1) - + os.remove(dump_file_encoded) os.remove(dump_file) except: raise +db = connect() +cursor = db.cursor() + # parse the schema user wishes to upgrade to try: file = open(schema_file, 'r')