]> 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:33 +0000 (17:39 -0500)
commit709239f4a61e88c2051dce87eb4058efd653697e
tree5c9c3c15c7e13e422a2c61fca2ccd51ca6ee94b5
parent400bf1716f84821d63daaf0a988d725dfd55d6a0
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
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