]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Fixed bug where if an exception were thrown at the start of a
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 6 Jan 2015 02:38:19 +0000 (21:38 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 6 Jan 2015 02:42:10 +0000 (21:42 -0500)
commit93978ce3ae84a2ee0082371c73453efbf53d11ee
treead70bd13816cbd0c2d3320436ea59d88712940fe
parent6552fb2ac04c441389066d03298daead26496396
- Fixed bug where if an exception were thrown at the start of a
:class:`.Query` before it fetched results, particularly when
row processors can't be formed, the cursor would stay open with
results pending and not actually be closed.  This is typically only
an issue on an interpreter like Pypy where the cursor isn't
immediately GC'ed, and can in some circumstances lead to transactions/
locks being open longer than is desirable.
fixes #3285

Conflicts:
lib/sqlalchemy/orm/loading.py
doc/build/changelog/changelog_09.rst
lib/sqlalchemy/orm/loading.py
test/orm/test_loading.py