From: Mike Bayer Date: Sat, 24 Sep 2022 15:16:16 +0000 (-0400) Subject: add missing changelog for #8569 X-Git-Tag: rel_2_0_0b1~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75ab50869b37368f32ec311dfb59777c0c1d1edb;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git add missing changelog for #8569 Missed this in 57b400f07951f0ae8651ca383. have no idea how. Fixes: #8569 Change-Id: I4cec98d8c963930ef822bfd53d8a60a20be02894 --- 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