From b9e2926d661b80ee7b7c094c92cfa272d81b0b8b Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sat, 24 Sep 2022 11:16:16 -0400 Subject: [PATCH] add missing changelog for #8569 Missed this in 57b400f07951f0ae8651ca383. have no idea how. Fixes: #8569 Change-Id: I4cec98d8c963930ef822bfd53d8a60a20be02894 (cherry picked from commit 75ab50869b37368f32ec311dfb59777c0c1d1edb) --- doc/build/changelog/unreleased_14/8569.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 doc/build/changelog/unreleased_14/8569.rst diff --git a/doc/build/changelog/unreleased_14/8569.rst b/doc/build/changelog/unreleased_14/8569.rst new file mode 100644 index 0000000000..fc3b3f7398 --- /dev/null +++ b/doc/build/changelog/unreleased_14/8569.rst @@ -0,0 +1,13 @@ +.. change:: + :tags: orm, bug, regression + :tickets: 8569 + + Fixed regression for 1.4 in :func:`_orm.contains_eager` where the "wrap in + subquery" logic of :func:`_orm.joinedload` would be inadvertently triggered + for use of the :func:`_orm.contains_eager` function with similar statements + (e.g. those that use ``distinct()``, ``limit()`` or ``offset()``), which + would then lead to secondary issues with queries that used some + combinations of SQL label names and aliasing. This "wrapping" is not + appropriate for :func:`_orm.contains_eager` which has always had the + contract that the user-defined SQL statement is unmodified with the + exception of adding the appropriate columns to be fetched. \ No newline at end of file -- 2.47.3