From d45bd29918e217662ea2c0ee44608b0bbf0d4a06 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Mon, 5 Aug 2019 13:43:06 -0400 Subject: Remove threadlocal strategy docs, remaining contextual_connect in dfb20f07d8, we merged the removal of the threadlocal strategy from the 1.4 branch. We forgot to take the docs out :). Also, there seems to be an uncovered _contextual_connect call in horizontal shard. Cover that and repair. Fixes: #4632 Closes: #4795 Change-Id: Id05cbbebe34a8f547c9c84369a929a2926c7d093 --- lib/sqlalchemy/ext/horizontal_shard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sqlalchemy') diff --git a/lib/sqlalchemy/ext/horizontal_shard.py b/lib/sqlalchemy/ext/horizontal_shard.py index c263b1734..f56381685 100644 --- a/lib/sqlalchemy/ext/horizontal_shard.py +++ b/lib/sqlalchemy/ext/horizontal_shard.py @@ -242,7 +242,7 @@ class ShardedSession(Session): else: return self.get_bind( mapper, shard_id=shard_id, instance=instance - )._contextual_connect(**kwargs) + ).connect(**kwargs) def get_bind( self, mapper, shard_id=None, instance=None, clause=None, **kw -- cgit v1.2.1