Kaydet (Commit) caef6194 authored tarafından Adrian Holovaty's avatar Adrian Holovaty

Fixed #39 -- Thanks for the research, deelan!

git-svn-id: http://code.djangoproject.com/svn/django/trunk@113 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst 058c526e
...@@ -35,10 +35,11 @@ class DatabaseWrapper: ...@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment