]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Further refine labeling for renamed columns
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 11 Feb 2021 19:05:49 +0000 (14:05 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 12 Feb 2021 23:58:53 +0000 (18:58 -0500)
commit1d2b49bc991ca866fd71da3ccfbcde5093482512
tree45d83e2a1ae0b4356670f2600e8f3b34d0776911
parent4aa0c7ae76894048c5c30c89c403c7cbf5d844ff
Further refine labeling for renamed columns

Forked from I22f6cf0f0b3360e55299cdcb2452cead2b2458ea
we are attempting to decide the case for columns mapped
under a different name.   since the .key feature of
Column seems to support this fully, see if an annotation
can be used to indicate an effective .key for a column.

The effective change is that the labeling of column expressions
in rows has been improved to retain the original name of the ORM
attribute even if used in a subquery.

References: #5933
Change-Id: If251f556f7d723f50d349f765f1690d6c679d2ef
15 files changed:
doc/build/changelog/unreleased_14/5933.rst
lib/sqlalchemy/orm/attributes.py
lib/sqlalchemy/orm/context.py
lib/sqlalchemy/orm/descriptor_props.py
lib/sqlalchemy/orm/persistence.py
lib/sqlalchemy/orm/properties.py
lib/sqlalchemy/orm/relationships.py
lib/sqlalchemy/orm/util.py
lib/sqlalchemy/sql/elements.py
lib/sqlalchemy/sql/schema.py
lib/sqlalchemy/sql/selectable.py
test/orm/test_query.py
test/orm/test_utils.py
test/sql/test_compiler.py
test/sql/test_selectable.py