mirror of
				https://github.com/django/django.git
				synced 2025-11-04 05:35:37 +00:00 
			
		
		
		
	Fixed #39 -- Thanks for the research, deelan!
git-svn-id: http://code.djangoproject.com/svn/django/trunk@113 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		
							parent
							
								
									058c526ef9
								
							
						
					
					
						commit
						caef61945d
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
					@ -35,10 +35,11 @@ class DatabaseWrapper:
 | 
				
			||||||
        return self.connection.cursor()
 | 
					        return self.connection.cursor()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def commit(self):
 | 
					    def commit(self):
 | 
				
			||||||
        pass
 | 
					        self.connection.commit()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def rollback(self):
 | 
					    def rollback(self):
 | 
				
			||||||
        pass
 | 
					        if self.connection:
 | 
				
			||||||
 | 
					            self.connection.rollback()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def close(self):
 | 
					    def close(self):
 | 
				
			||||||
        if self.connection is not None:
 | 
					        if self.connection is not None:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue