Ticket #5063: psycopg2.patch
File psycopg2.patch, 713 bytes (added by , 17 years ago) |
---|
-
django/db/backends/postgresql_psycopg2/base.py
52 52 53 53 def _cursor(self, settings): 54 54 set_tz = False 55 56 # ISSUE: OperationalError causes the connection to close without properly setting self.connection 57 # BEGIN: Correction 58 if self.connection and self.connection.closed: 59 self.connection = None 60 # END: Correction 61 55 62 if self.connection is None: 56 63 set_tz = True 57 64 if settings.DATABASE_NAME == '':