Browse Source

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

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday 11 years ago
parent
commit
09c73f521c
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);