Ticket #5063: django.db.backends.postgresql_psycopg2.base.patch

File django.db.backends.postgresql_psycopg2.base.patch, 328 bytes (added by asderose@…, 17 years ago)

Patch

Line 
133a34,40
2>
3> # psycopg2 closes the DB connection when OperationalError is thrown
4> # We can test for this by examining connection.closed
5> # If true we must re-establish the connection.
6> if self.connection and self.connection.closed:
7> self.connection = None
8>
Back to Top