]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
de-clone FROM objects placed into from_linter.froms
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 20 Jul 2023 16:36:35 +0000 (12:36 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 24 Jul 2023 15:24:07 +0000 (11:24 -0400)
commit9fc027b182483ce465c476757b2fd469bb54ae46
tree4fe12006d9e78aac9aaa8faf03925595cf84cf6d
parent45b45619e75cb51bf1c3549a122edf8151a5d818
de-clone FROM objects placed into from_linter.froms

Fixed issue where internal cloning used by the ORM for expressions like
:meth:`_orm.relationship.Comparator.any` to produce correlated EXISTS
constructs would interfere with the "cartesian product warning" feature of
the SQL compiler, leading the SQL compiler to warn when all elements of the
statement were correctly joined.

Fixes: #10124
Change-Id: I31c1ba538e2b943278e8cc0b7fddc107968a0826
doc/build/changelog/unreleased_20/10124.rst [new file with mode: 0644]
lib/sqlalchemy/sql/base.py
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/sql/elements.py
test/sql/test_from_linter.py