Browse Source

HPCC-13940 Correctly determine the scope to evalue graph results

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday 9 years ago
parent
commit
94d6ed979c
1 changed files with 5 additions and 0 deletions
  1. 5 0
      ecl/hqlcpp/hqlinline.cpp

+ 5 - 0
ecl/hqlcpp/hqlinline.cpp

@@ -1480,6 +1480,11 @@ bool EvalContext::evaluateInParent(BuildCtx & ctx, IHqlExpression * expr, bool h
     case no_loopcounter:
         return !translator.isCurrentActiveGraph(ctx, expr->queryChild(0));
     case no_getgraphresult:
+        if (expr->hasAttribute(externalAtom))
+        {
+            IHqlExpression * resultInstance = queryAttributeChild(expr, externalAtom, 0);
+            return !ctx.queryMatchExpr(resultInstance);
+        }
         return !translator.isCurrentActiveGraph(ctx, expr->queryChild(1));
     case no_getresult:
     case no_workunit_dataset: