]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
apply _propagate_attrs in _construct_for_list
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 18 Feb 2025 15:20:32 +0000 (10:20 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 18 Feb 2025 17:01:33 +0000 (12:01 -0500)
commit1e2e25c03d60e723d6de37366580f644e2c42c73
tree8171d54bf021e9b7d3747d2cc6e38e4d38a59b3b
parentdae5c618f378db2f10b9f4c332071319e909c69b
apply _propagate_attrs in _construct_for_list

Fixed issue where the "is ORM" flag of a :func:`.select` or other ORM
statement would not be propagated to the ORM :class:`.Session` based on a
multi-part operator expression alone, e.g. such as ``Cls.attr + Cls.attr +
Cls.attr`` or similar, leading to ORM behaviors not taking place for such
statements.

Fixes: #12357
Change-Id: I61130eeb3c7a32c1830731fd9ad4eb99a64abf7d
(cherry picked from commit d0873ec7735f8238d74b860d6a8a85d55b2dbd1d)
doc/build/changelog/unreleased_20/12357.rst [new file with mode: 0644]
lib/sqlalchemy/sql/elements.py
test/orm/test_core_compilation.py