From 25fc9562f08fe26e4e2f6d4cf69c34b666f0180a Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 10 Mar 2019 23:34:33 -0400 Subject: 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 | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 doc/build/changelog/unreleased_13/4537.rst (limited to 'doc') diff --git a/doc/build/changelog/unreleased_13/4537.rst b/doc/build/changelog/unreleased_13/4537.rst new file mode 100644 index 000000000..62b189431 --- /dev/null +++ b/doc/build/changelog/unreleased_13/4537.rst @@ -0,0 +1,13 @@ +.. change:: + :tags: bug, orm + :tickets: 4537 + + 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. + -- cgit v1.2.1