diff --git a/django/db/backends/__init__.py b/django/db/backends/__init__.py index aa9e3e0310..24153cb0aa 100644 --- a/django/db/backends/__init__.py +++ b/django/db/backends/__init__.py @@ -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: