diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-09-26 21:41:15 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-09-26 21:41:15 -0400 |
| commit | 573877b4bc4fabcdae8b22e5257fc80de478a507 (patch) | |
| tree | 37a34ce51538b6732a063ded94856397d527d215 /lib | |
| parent | b89523f0b75e8d39bcbd8a5c07015e9df4ef5e2f (diff) | |
| download | sqlalchemy-573877b4bc4fabcdae8b22e5257fc80de478a507.tar.gz | |
- repair autorollback for branches
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/sqlalchemy/engine/base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/engine/base.py b/lib/sqlalchemy/engine/base.py index 05bb1f4e5..e5feda138 100644 --- a/lib/sqlalchemy/engine/base.py +++ b/lib/sqlalchemy/engine/base.py @@ -673,8 +673,8 @@ class Connection(Connectable): self.__transaction = None def _autorollback(self): - if not self.in_transaction(): - self._rollback_impl() + if not self._root.in_transaction(): + self._root._rollback_impl() def close(self): """Close this :class:`.Connection`. |
