diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2016-10-03 12:25:42 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2016-10-03 12:25:42 -0400 |
commit | 728ce8cc480d0ada690e5a97067cff821b9a65f3 (patch) | |
tree | c9e12ecd610b87c40d2ce1ba1cdd4b61d2d33a15 /lib/sqlalchemy/engine/default.py | |
parent | 333414fe94941a6a58e7d8e45042548eb2d58119 (diff) | |
download | sqlalchemy-728ce8cc480d0ada690e5a97067cff821b9a65f3.tar.gz |
Ensure strong ref to obj before calling persistent_to_deleted, others
Add checks in spots where state.obj() might be late-GC'ed before
we get a chance to call the event. There may be more cases
of these which we should address as they come up. The Session
should always be maintaining strong refs to objects that have
pending operations left on them, so for these cases we need
to ensure that ref remains long enough for the event to be called.
Change-Id: I1a7c7bc57130acc11f54ad55924af2e36ac75101
Fixes: #3808
Diffstat (limited to 'lib/sqlalchemy/engine/default.py')
0 files changed, 0 insertions, 0 deletions