Changeset - cd865113423e
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 14 years ago 2011-06-06 17:30:34
marcin@python-works.com
applied caching query update from latest sqlalchemy
1 file changed with 1 insertions and 2 deletions:
0 comments (0 inline, 0 general)
rhodecode/model/caching_query.py
Show inline comments
 
@@ -276,6 +276,7 @@ def _params_from_query(query):
 
    v = []
 
    def visit_bindparam(bind):
 
        value = query._params.get(bind.key, bind.value)
 

	
 
        # lazyloader may dig a callable in here, intended
 
        # to late-evaluate params after autoflush is called.
 
        # convert to a scalar value.
 
@@ -285,6 +286,4 @@ def _params_from_query(query):
 
        v.append(value)
 
    if query._criterion is not None:
 
        visitors.traverse(query._criterion, {}, {'bindparam':visit_bindparam})
 
    for f in query._from_obj:
 
        visitors.traverse(f, {}, {'bindparam':visit_bindparam})
 
    return v
0 comments (0 inline, 0 general)