]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Ensure discarded collection removed from empty collections
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 22 Aug 2019 00:19:43 +0000 (20:19 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 22 Aug 2019 18:37:48 +0000 (14:37 -0400)
commit9405089dfce141196157c6d89323c3f9aec2c0c0
treed8809e8c78391cf9b48e25ba43340035c9f4a7f7
parent94385b031c1dac004ee4181cb5783328d740d110
Ensure discarded collection removed from empty collections

A bulk replace operation was not attending to the previous
list still present in the "_empty_collections" dictionary
which was added as part of #4519.

Fixes: #4519
Change-Id: I3f99f8647c0fb8140b3dfb03686a5d3b90da633f
lib/sqlalchemy/orm/attributes.py
lib/sqlalchemy/orm/strategies.py
test/orm/test_attributes.py
test/orm/test_eager_relations.py