]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Anonymous labeling is applied to a :attr:`.func` construct that is
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 26 Feb 2016 05:20:39 +0000 (00:20 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 26 Feb 2016 05:21:12 +0000 (00:21 -0500)
commitaac2cb5007cea2f7a68e4cfe4515c95724a3eaf4
treefcb0f2ec53ac668187771e45df733cb48d2e8596
parentaa9ce3f521f254da9879ede011e520ec35b8270e
- Anonymous labeling is applied to a :attr:`.func` construct that is
passed to :func:`.column_property`, so that if the same attribute
is referred to as a column expression twice the names are de-duped,
thus avoiding "ambiguous column" errors.   Previously, the
``.label(None)`` would need to be applied in order for the name
to be de-anonymized.
fixes #3663

(cherry picked from commit 0210695bd97e76f58d8781b69337816501482fb0)
doc/build/changelog/changelog_10.rst
lib/sqlalchemy/sql/elements.py
test/orm/test_query.py