diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-02-27 00:44:26 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-02-27 00:44:26 +0000 |
commit | 46fa536ba4c2542bcac41346bb113a08ebcf342c (patch) | |
tree | 051cca9668a5d1a65c81129399fd7faffde8d2c4 /lib/sqlalchemy/engine/threadlocal.py | |
parent | 64988b45656c8fcdf384b3ad3b6303eaff521dc1 (diff) | |
download | sqlalchemy-46fa536ba4c2542bcac41346bb113a08ebcf342c.tar.gz |
- threadlocal engine wasn't properly closing the connection
upon close() - fixed that.
- Transaction object doesn't rollback or commit if it isn't
"active", allows more accurate nesting of begin/rollback/commit.
- Added basic support for mxODBC [ticket:1710].
- Python unicode objects as binds result in the Unicode type,
not string, thus eliminating a certain class of unicode errors
on drivers that don't support unicode binds.
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 a9892ae7e..001caee2a 100644 --- a/lib/sqlalchemy/engine/threadlocal.py +++ b/lib/sqlalchemy/engine/threadlocal.py @@ -94,6 +94,8 @@ class TLEngine(base.Engine): def close(self): if not self.closed: self.contextual_connect().close() + connection = self._connections.conn() + connection._force_close() del self._connections.conn self._connections.trans = [] |