]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Clone internals for Select._correlate_except collection as well as _correlate
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 11 Mar 2019 03:34:33 +0000 (23:34 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 11 Mar 2019 03:44:08 +0000 (23:44 -0400)
commit25fc9562f08fe26e4e2f6d4cf69c34b666f0180a
treeaa6647eb6eaa1a16694f0aa1cb3348de61c6594b
parentd514c032cd0349afc93f89d5b99835198ae70112
Clone internals for Select._correlate_except collection as well as _correlate

Fixed bug where use of :func:`.with_polymorphic` or other aliased construct
would not properly adapt when the aliased target were used as the
:meth:`.Select.correlate_except` target of a subquery used inside of a
:func:`.column_property`.  This required a fix to the clause adaption
mechanics to properly handle a selectable that shows up in the "correlate
except" list, in a similar manner as which occurs for selectables that show
up in the "correlate" list.  This is ultimately a fairly fundamental bug
that has lasted for a long time but it is hard to come across it.

Fixes: #4537
Change-Id: Ibb97d4eea18b3c452aad519dd14919bfb84d422f
doc/build/changelog/unreleased_13/4537.rst [new file with mode: 0644]
lib/sqlalchemy/sql/selectable.py
test/orm/inheritance/test_assorted_poly.py
test/sql/test_generative.py