Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[1.0.X] Fixed #10450 -- Fixed an initialisation problem in the savepo…

…int 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
  • Loading branch information...
commit c2a828c7ca645adcd1cf55761c203f3dc62bdc8c 1 parent b853ed4
@malcolmt malcolmt authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 django/db/backends/__init__.py
View
6 django/db/backends/__init__.py
@@ -34,17 +34,17 @@ def _rollback(self):
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:
Please sign in to comment.
Something went wrong with that request. Please try again.