]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
ensure correlate_except is checked for empty tuple
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 3 Jan 2022 22:28:52 +0000 (17:28 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 3 Jan 2022 22:39:51 +0000 (17:39 -0500)
commit6b646139bbff267d4f84943c982808fc33ea9cb9
tree31aa3a15ca05a8ad662683492bb3ab3a6229d49e
parentdd8e33d84f9d0449c14e51a4e3ffdefdd470f961
ensure correlate_except is checked for empty tuple

Fixed issue where :meth:`_sql.Select.correlate_except` method, when passed
either the ``None`` value or no arguments, would not correlate any elements
when used in an ORM context (that is, passing ORM entities as FROM
clauses), rather than causing all FROM elements to be considered as
"correlated" in the same way which occurs when using Core-only constructs.

Fixes: #7514
Change-Id: Ic4a5252c8f3c1140aba6c308264948f3a91f33f5
(cherry picked from commit 709239f4a61e88c2051dce87eb4058efd653697e)
doc/build/changelog/unreleased_14/7514.rst [new file with mode: 0644]
lib/sqlalchemy/orm/context.py
test/orm/test_core_compilation.py
test/sql/test_compiler.py