diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-11-07 21:46:48 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-11-07 21:46:48 +0000 |
commit | f9c8d1cf34f93b895a9f3e6fd91d1718e0186951 (patch) | |
tree | 4517ddf68fb43be22069979d7ff81165ed7c107c /lib/sqlalchemy/engine/threadlocal.py | |
parent | af070d037ba4b0787e7bd74add6e5aba04f144d3 (diff) | |
download | sqlalchemy-f9c8d1cf34f93b895a9f3e6fd91d1718e0186951.tar.gz |
fixed the previous TLTransaction checkin
Diffstat (limited to 'lib/sqlalchemy/engine/threadlocal.py')
-rw-r--r-- | lib/sqlalchemy/engine/threadlocal.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sqlalchemy/engine/threadlocal.py b/lib/sqlalchemy/engine/threadlocal.py index 8eb039208..f2b950f2e 100644 --- a/lib/sqlalchemy/engine/threadlocal.py +++ b/lib/sqlalchemy/engine/threadlocal.py @@ -80,6 +80,8 @@ class TLSession(object): def close(self): if self.__tcount == 1: self.rollback() + elif self.__tcount > 1: + self.__tcount -= 1 def is_begun(self): return self.__tcount > 0 |