diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-11-25 16:49:28 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-11-25 21:31:24 -0500 |
commit | e3710b405ff2680bf67c0eb0cf91182f9094237d (patch) | |
tree | b068477cbb5986831040497b10ded72c354e6978 /lib/sqlalchemy/ext/mutable.py | |
parent | df3bd8d29740e846d7faac842a6e2de16cf483f0 (diff) | |
download | sqlalchemy-e3710b405ff2680bf67c0eb0cf91182f9094237d.tar.gz |
improve column targeting issues with query_expression
Fixed issues in :func:`_orm.with_expression` where expressions that were
composed of columns within a subquery being SELECTed from, or when using
``.from_statement()``, would not render correct SQL **if** the expression
had a label name that matched the attribute which used
:func:`_orm.query_expression`, even when :func:`_orm.query_expression` had
no default expression. For the moment, if the :func:`_orm.query_expression`
**does** have a default expression, that label name is still used for that
default, and an additional label with the same name will be ignored.
Overall, this case is pretty thorny so further adjustments might be
warranted.
Fixes: #8881
Change-Id: Ie939b1470cb2e824717384be65f4cd8edd619942
Diffstat (limited to 'lib/sqlalchemy/ext/mutable.py')
0 files changed, 0 insertions, 0 deletions