Code

Allow and implement iterating arbitrary (non-constant) array values.
[sysdb.git] / src / parser / analyzer.c
index f12dff2005a953d39910eec9ce8e026f67c4be95..ecae40f890c2842d82f92d701ab0a8e3137025f9 100644 (file)
@@ -202,11 +202,6 @@ analyze_logical(context_t ctx, sdb_ast_op_t *op, sdb_strbuf_t *errbuf)
 static int
 analyze_arith(context_t ctx, sdb_ast_op_t *op, sdb_strbuf_t *errbuf)
 {
-       if (ctx.iter) {
-               op_error(errbuf, op, "cannot evaluate in iterator context");
-               return -1;
-       }
-
        if (analyze_node(ctx, op->left, errbuf))
                return -1;
        if (analyze_node(ctx, op->right, errbuf))