# HG changeset patch # User Sylvain Thénault # Date 1302000438 -7200 # Node ID f2a976cf7dac8b01cb485b23772899629d5edb46 # Parent 3bad3b778b4cf643a154aed3f8673d24516306f7 [rql rewriter] take care not to introduce snippets into a neged scope diff -r 3bad3b778b4c -r f2a976cf7dac rqlrewrite.py --- a/rqlrewrite.py Fri Apr 01 16:02:45 2011 +0200 +++ b/rqlrewrite.py Tue Apr 05 12:47:18 2011 +0200 @@ -257,6 +257,11 @@ insert_scope = None for vi in self.varinfos: scope = vi.get('stinfo', {}).get('scope', self.select) + while True: + negstmt = scope.neged() + if negstmt is None: + break + scope = negstmt.scope if insert_scope is None: insert_scope = scope else: