add reconnect=1 parameter to mysql_connect in order to reconnect after

a large inactivity period

--HG--
extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40144
This commit is contained in:
olveyra 2008-08-05 11:41:49 +00:00
parent 7a195a9794
commit 7fc5923249
1 changed files with 1 additions and 0 deletions

View File

@ -18,5 +18,6 @@ def mysql_connect(db_uri, **kwargs):
del(d['passwd'])
d['charset'] = "utf8"
d['reconnect'] = 1
d.update(kwargs)
return MySQLdb.connect(**d)