Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #10450 -- Fixed an initialisation problem in the savepoint code.

Patch from Jeremy Dunck.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10511 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 8fecf36b68230625fd4e96be9c946af73b7c33e5 1 parent 3bd384a
Malcolm Tredinnick authored April 11, 2009

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  django/db/backends/__init__.py
6  django/db/backends/__init__.py
@@ -59,17 +59,17 @@ def _leave_transaction_management(self, managed):
59 59
     def _savepoint(self, sid):
60 60
         if not self.features.uses_savepoints:
61 61
             return
62  
-        self.connection.cursor().execute(self.ops.savepoint_create_sql(sid))
  62
+        self.cursor().execute(self.ops.savepoint_create_sql(sid))
63 63
 
64 64
     def _savepoint_rollback(self, sid):
65 65
         if not self.features.uses_savepoints:
66 66
             return
67  
-        self.connection.cursor().execute(self.ops.savepoint_rollback_sql(sid))
  67
+        self.cursor().execute(self.ops.savepoint_rollback_sql(sid))
68 68
 
69 69
     def _savepoint_commit(self, sid):
70 70
         if not self.features.uses_savepoints:
71 71
             return
72  
-        self.connection.cursor().execute(self.ops.savepoint_commit_sql(sid))
  72
+        self.cursor().execute(self.ops.savepoint_commit_sql(sid))
73 73
 
74 74
     def close(self):
75 75
         if self.connection is not None:

0 notes on commit 8fecf36

Please sign in to comment.
Something went wrong with that request. Please try again.