Bläddra i källkod

HPCC-8512 Ensure all set results are tagged as root - not just the first

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday 12 år sedan
förälder
incheckning
0511eb0714
1 ändrade filer med 5 tillägg och 1 borttagningar
  1. 5 1
      ecl/hqlcpp/hqlhtcpp.cpp

+ 5 - 1
ecl/hqlcpp/hqlhtcpp.cpp

@@ -4643,7 +4643,11 @@ void HqlCppTranslator::noteResultAccessed(BuildCtx & ctx, IHqlExpression * seq,
         ForEachItemIn(i, internalResults)
         {
             if (internalResults.item(i).noteUse(name, graph))
-                break;
+            {
+                //Can't currently break because the same result might be generated more than once
+                //if an expression ends up in two different graphs.
+                //break;
+            }
         }
     }
 }