]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- assert passive_deletes='all' does not affect collection/scalar
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 6 Jun 2017 22:53:03 +0000 (18:53 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 6 Jun 2017 22:53:03 +0000 (18:53 -0400)
commitacf64c4178169b765f3f7ae492b1774955cf541f
treec68f881515358716f2f32d1c1fad81f47bd2291b
parentf1faec8829fc0d1c353aea9bb5272c4b5726d999
- assert passive_deletes='all' does not affect collection/scalar
membership removal

in issue #3844 we hypotheized that passive_deletes='all' was broken
because it sets to NULL a foreign key attribute when the child
object is removed or replaced.   However, not doing the NULL
set means that nothing happens at all and the operation silently
fails.

Change-Id: I11834e7e324349e172dc797bac62731008b6b95a
lib/sqlalchemy/orm/relationships.py
test/orm/test_unitofwork.py