]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- When an open Session is garbage collected, the objects
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 24 Sep 2011 15:12:34 +0000 (11:12 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 24 Sep 2011 15:12:34 +0000 (11:12 -0400)
commit212583b00795656633d34bffd4a5613fedadb5be
tree5ec62f77e729a1ea695b490315769b941b60886f
parent3f347edd14cf9ab1b01c7570a65228d964d2b4a6
- When an open Session is garbage collected, the objects
within it which remain are considered detached again
when they are add()-ed to a new Session.
This is accomplished by an extra check that the previous
"session_key" doesn't actually exist among the pool
of Sessions.  [ticket:2281]
CHANGES
lib/sqlalchemy/orm/session.py
test/orm/test_session.py