Ticket #3024: check_connection_for_none.diff
File check_connection_for_none.diff, 3.5 KB (added by , 18 years ago) |
---|
-
django/db/backends/ado_mssql/base.py
76 76 return cursor 77 77 78 78 def _commit(self): 79 return self.connection.commit() 79 if self.connection is not None: 80 return self.connection.commit() 80 81 81 82 def _rollback(self): 82 if self.connection :83 if self.connection is not None: 83 84 return self.connection.rollback() 84 85 85 86 def close(self): -
django/db/backends/postgresql/base.py
50 50 return cursor 51 51 52 52 def _commit(self): 53 return self.connection.commit() 53 if self.connection is not None: 54 return self.connection.commit() 54 55 55 56 def _rollback(self): 56 if self.connection :57 if self.connection is not None: 57 58 return self.connection.rollback() 58 59 59 60 def close(self): -
django/db/backends/sqlite3/base.py
67 67 return cursor 68 68 69 69 def _commit(self): 70 self.connection.commit() 70 if self.connection is not None: 71 self.connection.commit() 71 72 72 73 def _rollback(self): 73 if self.connection :74 if self.connection is not None: 74 75 self.connection.rollback() 75 76 76 77 def close(self): -
django/db/backends/mysql/base.py
106 106 return cursor 107 107 108 108 def _commit(self): 109 self.connection.commit() 109 if self.connection is not None: 110 self.connection.commit() 110 111 111 112 def _rollback(self): 112 if self.connection :113 if self.connection is not None: 113 114 try: 114 115 self.connection.rollback() 115 116 except Database.NotSupportedError: -
django/db/backends/oracle/base.py
43 43 return FormatStylePlaceholderCursor(self.connection) 44 44 45 45 def _commit(self): 46 self.connection.commit() 46 if self.connection is not None: 47 self.connection.commit() 47 48 48 49 def _rollback(self): 49 if self.connection :50 if self.connection is not None: 50 51 try: 51 52 self.connection.rollback() 52 53 except Database.NotSupportedError: -
django/db/backends/postgresql_psycopg2/base.py
51 51 return cursor 52 52 53 53 def _commit(self): 54 return self.connection.commit() 54 if self.connection is not None: 55 return self.connection.commit() 55 56 56 57 def _rollback(self): 57 if self.connection :58 if self.connection is not None: 58 59 return self.connection.rollback() 59 60 60 61 def close(self):