Browse Source

Merge pull request #5137 from ghalliday/issue10390

HPCC-10390 Fix internal error generated by <dataset> : WHEN

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 11 years ago
parent
commit
30f7883441
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ecl/hqlcpp/hqlttcpp.cpp

+ 1 - 1
ecl/hqlcpp/hqlttcpp.cpp

@@ -5895,7 +5895,7 @@ IHqlExpression * WorkflowTransformer::extractWorkflow(IHqlExpression * untransfo
         Owned<IWorkflowItem> wf = addWorkflowToWorkunit(schedWfid, WFTypeNormal, WFModeNormal, queryDirectDependencies(getValue), info.queryCluster());
         setWorkflowSchedule(wf, sched);
         workflowOut->append(*createWorkflowItem(getValue, schedWfid, no_none));
-        getValue.setown(createValue(no_null, makeVoidType()));
+        getValue.setown(createNullExpr(expr->queryType()));
     }
     else
         queryBodyExtra(getValue.get())->addDependency(wfid);