]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
accommodate HasEntityNamespace in context.all_selected_columns
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 29 Apr 2021 14:40:00 +0000 (10:40 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 29 Apr 2021 14:41:07 +0000 (10:41 -0400)
commit28493bf4bc35a4802b57b02a8b389cec7b6dcbb6
tree018e876612cf5885f60e41434a5112134225a5a8
parent9e3ef9bcf0a41bfacc4e6e836a45ed4d89c7c0fe
accommodate HasEntityNamespace in context.all_selected_columns

Fixed regression in hybrid_property where a hybrid against a SQL function
would generate an ``AttributeError`` when attempting to generate an entry
for the ``.c`` collection of a subquery in some cases; among other things
this would impact its use in cases like that of ``Query.count()``.

Fixes: #6401
Change-Id: Icc243c699e9a5c88448076c6427ec389eaa8b8ed
doc/build/changelog/unreleased_14/6401.rst [new file with mode: 0644]
lib/sqlalchemy/orm/attributes.py
lib/sqlalchemy/orm/context.py
test/ext/test_hybrid.py