dcramer/django-oursql — Issue #9: Support for autoreconnect
Author: dnet
Created: 2011-10-13 18:40:31+00:00
State: open

Sometimes using django-oursql produces "MySQL server has gone away" exceptions, and the oursql developers released a fix for this problem in form of a connect() parameter called `autoreconnect`. I added a line containing `kwargs['autoreconnect'] = True` to base.py right before connect() as a workaround, and it solved the problem, maybe django-oursql could make it a configurable parameter.

The LaunchPad issue can be found here: https://bugs.launchpad.net/oursql/+bug/838120