From 18e9e2e490845e05970fdc0e72b87f34e2edb164 Mon Sep 17 00:00:00 2001 From: Lee Trout Date: Tue, 13 Aug 2013 15:27:43 -0400 Subject: [PATCH] Fixes issue 69 on bitbucket --- johnny/transaction.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/johnny/transaction.py b/johnny/transaction.py index 146276d..b3b1c84 100755 --- a/johnny/transaction.py +++ b/johnny/transaction.py @@ -156,7 +156,8 @@ def _create_savepoint(self, sid, using=None): self._clear(using) #append the key to the savepoint stack sids = self._get_sid(using) - sids.append(key) + if len(sids) > 0 and sids[-1] != key: + sids.append(key) def _rollback_savepoint(self, sid, using=None): sids = self._get_sid(using)