]> 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:23 +0000 (15:49 -0400)
commit5c87c494c64b13159aca2f33b0cba855f5f216cd
treeee0a7d428ba269ac76e291185ab89e0306a158f1
parentb55439f390f0ceb2b5abd2803f9aa235bac33d03
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
(cherry picked from commit c09b07fbb36ac288d32221349b019b490efc9ff3)
doc/build/changelog/unreleased_12/4328.rst [new file with mode: 0644]
lib/sqlalchemy/ext/baked.py
test/ext/test_horizontal_shard.py