django/django — pull request #2739 by victorgama (2014-05-29 17:48:28+00:00)
Title: Fixed #21597 -- Recover from faulty connections.

This implements a way of recovering from faulty MySQL Server connections when an error #2006 is issued from the MySQL Connection Adapter.
It renews the (already broken) MySQL Connection and also resets the faulty cursor by replacing its current instance with a brand new one.