summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2016-09-19 16:22:08 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2016-09-19 16:22:08 -0400
commit8c3b9d6083709311c6125d812b242f9e31a90065 (patch)
tree1f20251a4a05e5d4d91b173098b0029445fcbc97 /lib/sqlalchemy/orm
parent881369b949cff44e0017fdc28d9722ef3c26171a (diff)
downloadsqlalchemy-8c3b9d6083709311c6125d812b242f9e31a90065.tar.gz
Support bindparam() with callable for primaryjoin
Fixes the comparison of bindparam() objects based on the "callable" parameter being present which helps to correctly detect use_get, and also checks for "callable" when detecting parameters for value substitution and will not impact the object if present. Change-Id: I4c93ee5d404d2648dd9835beeae0c5fb67e37d19 Fixes: #3767
Diffstat (limited to 'lib/sqlalchemy/orm')
-rw-r--r--lib/sqlalchemy/orm/strategies.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/strategies.py b/lib/sqlalchemy/orm/strategies.py
index 0b22b8486..202b652b7 100644
--- a/lib/sqlalchemy/orm/strategies.py
+++ b/lib/sqlalchemy/orm/strategies.py
@@ -478,7 +478,7 @@ class LazyLoader(AbstractRelationshipLoader, util.MemoizedSlots):
params.append((
bindparam.key, bind_to_col[bindparam._identifying_key],
None))
- else:
+ elif bindparam.callable is None:
params.append((bindparam.key, None, bindparam.value))
criterion = visitors.cloned_traverse(