]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Check for the endmost target when chaining contains()
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 2 Jan 2018 22:56:45 +0000 (17:56 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 2 Jan 2018 23:00:11 +0000 (18:00 -0500)
commitdcf66590d2d4dda35cdb2db25755de4fb1cd84a5
tree3b02d2153813ec4705a25fc81e1a19d6652be5eb
parent435aaff20effbc914bbb4d19f177df3c1f5f15ab
Check for the endmost target when chaining contains()

Fixed regression in association proxy due to :ticket:`3769`
(allow for chained any() / has()) where contains() against
an association proxy chained in the form
(o2m relationship, associationproxy(m2o relationship, m2o relationship))
would raise an error regarding the re-application of contains()
on the final link of the chain.

Change-Id: Iea51ce84c2c5a332416fff10b1ba0e676cf0bad7
Fixes: #4150
doc/build/changelog/unreleased_12/4150.rst [new file with mode: 0644]
lib/sqlalchemy/ext/associationproxy.py
test/ext/test_associationproxy.py