]> 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 21:45:04 +0000 (17:45 -0400)
commit401549ad042b306eb426ac82b81d496650bdeb0f
tree7933489680db947e4a0afb12e0b2298941a07bdf
parent21d8a82c7b0dc450a14957fa34b81250119ad6a7
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
(cherry picked from commit 3fa38a1a2313b4644daa431d629394d6bb14497a)
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