]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
use coercions for label element, ensure propagate_attrs
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 18 Oct 2021 19:43:27 +0000 (15:43 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 18 Oct 2021 19:55:12 +0000 (15:55 -0400)
commit6da8c6d0299b055414d3350f4c2d73f9e911d7ae
treee22f04666ccdde2013cd4ea8c985e6704ca3c75b
parent68479d40726425c3b3a17f12658927db8ad9fe84
use coercions for label element, ensure propagate_attrs

Fixed bug where the ORM "plugin", necessary for features such as
:func:`_orm.with_loader_criteria` to work correctly, would not be applied
to a :func:`_sql.select` which queried from an ORM column expression if it
made use of the :meth:`_sql.ColumnElement.label` modifier.

Fixes: #7205
Change-Id: I72b84442e14df8b5ece33916f3c51ca3f358864b
doc/build/changelog/unreleased_14/7205.rst [new file with mode: 0644]
lib/sqlalchemy/sql/elements.py
test/orm/test_relationship_criteria.py