Mercurial > kallithea
changeset 1365:cd865113423e beta
applied caching query update from latest sqlalchemy
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 06 Jun 2011 17:30:34 +0200 |
parents | b6cac385cef0 |
children | 9c0f5d558789 |
files | rhodecode/model/caching_query.py |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/model/caching_query.py Sun Jun 05 02:12:19 2011 +0200 +++ b/rhodecode/model/caching_query.py Mon Jun 06 17:30:34 2011 +0200 @@ -276,6 +276,7 @@ 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 @@ 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