summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/ext/horizontal_shard.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2020-08-05 17:58:48 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2020-08-05 18:53:17 -0400
commit71a3ccbdef0d88e9231b7de9c51e4ed60b3b7181 (patch)
tree3251bd2b54584f832f7c1f31283ddfb675df3495 /lib/sqlalchemy/ext/horizontal_shard.py
parentcc57ea495f6460dd56daa6de57e40047ed999369 (diff)
downloadsqlalchemy-71a3ccbdef0d88e9231b7de9c51e4ed60b3b7181.tar.gz
Convert lazy loader, selectinload, load_on_ident to lambda statements
Building on newly robust lambdas in I29a513c98917b1d503abfdd61e6b6e8800851aa8, convert key loading off of the "baked" system so that baked is no longer used by the ORM. Change-Id: I3abfb45dd6e50f84f29d39434caa0b550ce27864
Diffstat (limited to 'lib/sqlalchemy/ext/horizontal_shard.py')
-rw-r--r--lib/sqlalchemy/ext/horizontal_shard.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/sqlalchemy/ext/horizontal_shard.py b/lib/sqlalchemy/ext/horizontal_shard.py
index 786d00597..53545826b 100644
--- a/lib/sqlalchemy/ext/horizontal_shard.py
+++ b/lib/sqlalchemy/ext/horizontal_shard.py
@@ -207,13 +207,10 @@ class ShardedSession(Session):
def execute_and_instances(orm_context):
- params = orm_context.parameters
if orm_context.is_select:
load_options = active_options = orm_context.load_options
update_options = None
- if params is None:
- params = active_options._params
else:
load_options = None