From caef61945ded51a7a3955e3089cc071de99b8942 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Sat, 16 Jul 2005 21:10:25 +0000 Subject: [PATCH] Fixed #39 -- Thanks for the research, deelan! git-svn-id: http://code.djangoproject.com/svn/django/trunk@113 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/db/backends/mysql.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/django/core/db/backends/mysql.py b/django/core/db/backends/mysql.py index 4585600ce4..c51b357bec 100644 --- a/django/core/db/backends/mysql.py +++ b/django/core/db/backends/mysql.py @@ -35,10 +35,11 @@ class DatabaseWrapper: return self.connection.cursor() def commit(self): - pass + self.connection.commit() def rollback(self): - pass + if self.connection: + self.connection.rollback() def close(self): if self.connection is not None: