]> 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 16:59:09 +0000 (11:59 -0500)
commitd0873ec7735f8238d74b860d6a8a85d55b2dbd1d
treee1e40397213aac6fb5e13fc145635bcc084e3196
parent890d5873397577865f5012319cdb4db9f793f98c
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
doc/build/changelog/unreleased_20/12357.rst [new file with mode: 0644]
lib/sqlalchemy/sql/elements.py
test/orm/test_core_compilation.py