Browse Source

HPCC-15133 Associate the skip callback in the correct context

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday 9 years ago
parent
commit
c272ca72a8
1 changed files with 1 additions and 2 deletions
  1. 1 2
      ecl/hqlcpp/hqlcppds.cpp

+ 1 - 2
ecl/hqlcpp/hqlcppds.cpp

@@ -3269,7 +3269,7 @@ void HqlCppTranslator::buildDatasetAssignProject(BuildCtx & ctx, IHqlCppDatasetB
         if (containsSkip)
         {
             OwnedHqlExpr callback = createUnknown(no_unknown, makeVoidType(), NULL, new InlineDatasetSkipCallback);
-            skipAssociation = ctx.associateExpr(skipActionMarker, callback);
+            skipAssociation = iterctx.associateExpr(skipActionMarker, callback);
         }
 
         Owned<IReferenceSelector> targetRef = buildActiveRow(iterctx, targetRow->querySelector());
@@ -3283,7 +3283,6 @@ void HqlCppTranslator::buildDatasetAssignProject(BuildCtx & ctx, IHqlCppDatasetB
             break;
         }
 
-        ctx.removeAssociation(skipAssociation);
         target->finishRow(iterctx, targetRow);
     }
 }