]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Added a new entry ``"entity"`` to the dictionaries returned by
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 11 Mar 2015 18:46:52 +0000 (14:46 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 11 Mar 2015 18:47:21 +0000 (14:47 -0400)
commit285ed82f1324ba3bb9bd23145a6cc0eaccdf0d2c
tree0f613b668944df162baf00c8f8b185bc274aa787
parent014b4bb5c6182e6d0d7f806a008b88a202e2eeff
- Added a new entry ``"entity"`` to the dictionaries returned by
:attr:`.Query.column_descriptions`.  This refers to the primary ORM
mapped class or aliased class that is referred to by the expression.
Compared to the existing entry for ``"type"``, it will always be
a mapped entity, even if extracted from a column expression, or
None if the given expression is a pure core expression.
references #3320

(cherry picked from commit b815e9483319b93f98bef11c7d47378441f78d21)
doc/build/changelog/changelog_09.rst
lib/sqlalchemy/orm/query.py
test/orm/test_query.py