]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
propagate proxy_key from WrapsColumnExpression
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 1 Jun 2022 16:11:19 +0000 (12:11 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 1 Jun 2022 16:46:46 +0000 (12:46 -0400)
commitc1b82a9b4f3157ada1b6077679ec393ebe173120
tree061810d2f91c91a3ef78d853b56edb939a70e2df
parent9edac949b4436792016fbcfa718a26169e27be76
propagate proxy_key from WrapsColumnExpression

this allows cast() of a label() to propagate the
proxy key outwards in the same way that it apparently
works at the SQL level.

This is stuffing even more rules into naming so basically
seeing how far we can go without other cases starting
to fail.

Fixes: #8084
Change-Id: I20bd97dae798fee6492334c06934e807d0f269ef
(cherry picked from commit 14250f2668151f1c4df86dbf962c771e9788111e)
doc/build/changelog/unreleased_14/8084.rst [new file with mode: 0644]
lib/sqlalchemy/sql/elements.py
test/sql/test_compiler.py
test/sql/test_labels.py