]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Include Session._query_cls as part of the cache key
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 26 Aug 2018 16:35:59 +0000 (12:35 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 26 Aug 2018 19:49:06 +0000 (15:49 -0400)
commitc09b07fbb36ac288d32221349b019b490efc9ff3
tree9101ddb254eb7d6a3a5f021abbc21bdd1d0097a4
parentc6427fe14090d2d06a4d7c4c398be1f6e6a771f1
Include Session._query_cls as part of the cache key

Fixed issue where :class:`.BakedQuery` did not include the specific query
class used by the :class:`.Session` as part of the cache key, leading to
incompatibilities when using custom query classes, in particular the
:class:`.ShardedQuery` which has some different argument signatures.

Fixes: #4328
Change-Id: I829c2a8b09c91e91c8dc8ea5476c0d7aa47028bd
doc/build/changelog/unreleased_12/4328.rst [new file with mode: 0644]
lib/sqlalchemy/ext/baked.py
test/ext/test_horizontal_shard.py