]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Change query._identity_lookup into a normal instance method
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 16 May 2018 15:16:57 +0000 (11:16 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 16 May 2018 19:41:32 +0000 (15:41 -0400)
commit3fa38a1a2313b4644daa431d629394d6bb14497a
treea4028ff0649a0c1cd55b579035eaa80bbc649cba
parent432d24ab1aac04a8ec881919964ff47ad8154659
Change query._identity_lookup into a normal instance method

Fixed regression in 1.2.7 caused by :ticket:`4228`, which itself was fixing
a 1.2-level regression, where the ``query_cls`` callable passed to a
:class:`.Session` was assumed to be a subclass of :class:`.Query`  with
class method availability, as opposed to an arbitrary callable.    In
particular, the dogpile caching example illustrates ``query_cls`` as a
function and not a :class:`.Query` subclass.

Change-Id: I3f86fcb12a6a9a89aa308b335e75c25969bcc30e
Fixes: #4256
doc/build/changelog/unreleased_12/4256.rst [new file with mode: 0644]
lib/sqlalchemy/ext/horizontal_shard.py
lib/sqlalchemy/orm/query.py
lib/sqlalchemy/orm/strategies.py
test/orm/test_query.py
test/profiles.txt