Skip to content

Commit

Permalink
tweak ctx
Browse files Browse the repository at this point in the history
  • Loading branch information
msullivan committed Sep 16, 2020
1 parent 35f2f90 commit 4d60fe5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion edb/edgeql/compiler/stmt.py
Expand Up @@ -133,7 +133,8 @@ def compile_ForQuery(
iterator_view = stmtctx.declare_view(
iterator, qlstmt.iterator_alias,
new_namespace=False,
path_id_namespace=path_id_ns, ctx=scopectx)
path_id_namespace=path_id_ns,
ctx=iterator_ctx or scopectx)

iterator_stmt = setgen.new_set_from_set(
iterator_view, preserve_scope_ns=True, ctx=scopectx)
Expand Down

0 comments on commit 4d60fe5

Please sign in to comment.