[1.0.X] Fixed #10450 -- Fixed an initialisation problem in the savepoint code.

Patch from Jeremy Dunck.

Backport of r10511 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10512 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick 2009-04-11 07:52:07 +00:00
parent b853ed4fe7
commit c2a828c7ca
1 changed files with 3 additions and 3 deletions

View File

@ -34,17 +34,17 @@ class BaseDatabaseWrapper(local):
def _savepoint(self, sid):
if not self.features.uses_savepoints:
return
self.connection.cursor().execute(self.ops.savepoint_create_sql(sid))
self.cursor().execute(self.ops.savepoint_create_sql(sid))
def _savepoint_rollback(self, sid):
if not self.features.uses_savepoints:
return
self.connection.cursor().execute(self.ops.savepoint_rollback_sql(sid))
self.cursor().execute(self.ops.savepoint_rollback_sql(sid))
def _savepoint_commit(self, sid):
if not self.features.uses_savepoints:
return
self.connection.cursor().execute(self.ops.savepoint_commit_sql(sid))
self.cursor().execute(self.ops.savepoint_commit_sql(sid))
def close(self):
if self.connection is not None: