Просмотр исходного кода

Fix access to context information from SUM/MAX

The code generator was incorrectly marking SUM(ds, f(ds,context)) as
context independent.  This first fix ensures context is available.
(It should be improved to see if the context is needed - would help
other activities as well.)

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday 13 лет назад
Родитель
Сommit
a6610b301f
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      ecl/hqlcpp/hqlinline.cpp

+ 2 - 1
ecl/hqlcpp/hqlinline.cpp

@@ -630,8 +630,9 @@ GraphLocalisation queryActivityLocalisation(IHqlExpression * expr)
         if (!queryRealChild(expr, 3))
         {
             node_operator op = querySimpleAggregate(expr, false, false);
-            if (op != no_none)
+            if (op == no_existsgroup || op == no_countgroup)
                 return GraphNoAccess;
+            //Need to check if it accesses anything in the context!
         }
         break;
     }