correct foreign key in a multi-level
inheritance situation.
+ - Fixed the attribute shard example to check
+ for bind param callable correctly in 0.7
+ style.
+
0.7.1
=====
- general
comparisons = []
def visit_bindparam(bind):
- # visit a bind parameter. Below we ensure
- # that we get the value whether it was specified
- # as part of query.params(), or is directly embedded
- # in the bind's "value" attribute.
- value = query._params.get(bind.key, bind.value)
-
- # some ORM functions place the bind's value as a
- # callable for deferred evaulation. Get that
- # actual value here.
- if callable(value):
- value = value()
+ # visit a bind parameter.
+
+ # check in _params for it first
+ if bind.key in query._params:
+ value = query._params[bind.key]
+ elif bind.callable:
+ # some ORM functions (lazy loading)
+ # place the bind's value as a
+ # callable for deferred evaulation.
+ value = bind.callable()
+ else:
+ # just use .value
+ value = bind.value
binds[bind] = value