From 8fecf36b68230625fd4e96be9c946af73b7c33e5 Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Sat, 11 Apr 2009 07:51:07 +0000 Subject: [PATCH] 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 --- django/db/backends/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/django/db/backends/__init__.py b/django/db/backends/__init__.py index 6dcc17f4f2..98360d081d 100644 --- a/django/db/backends/__init__.py +++ b/django/db/backends/__init__.py @@ -59,17 +59,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: