##// END OF EJS Templates
applied caching query update from latest sqlalchemy
marcink -
r1365:cd865113 beta
parent child Browse files
Show More
@@ -276,6 +276,7 b' def _params_from_query(query):'
276 v = []
276 v = []
277 def visit_bindparam(bind):
277 def visit_bindparam(bind):
278 value = query._params.get(bind.key, bind.value)
278 value = query._params.get(bind.key, bind.value)
279
279 # lazyloader may dig a callable in here, intended
280 # lazyloader may dig a callable in here, intended
280 # to late-evaluate params after autoflush is called.
281 # to late-evaluate params after autoflush is called.
281 # convert to a scalar value.
282 # convert to a scalar value.
@@ -285,6 +286,4 b' def _params_from_query(query):'
285 v.append(value)
286 v.append(value)
286 if query._criterion is not None:
287 if query._criterion is not None:
287 visitors.traverse(query._criterion, {}, {'bindparam':visit_bindparam})
288 visitors.traverse(query._criterion, {}, {'bindparam':visit_bindparam})
288 for f in query._from_obj:
289 visitors.traverse(f, {}, {'bindparam':visit_bindparam})
290 return v
289 return v
General Comments 0
You need to be logged in to leave comments. Login now