Explorar o código

Merge pull request #672 from ghalliday/aggregate

Fix access to context information from SUM/MAX

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman %!s(int64=13) %!d(string=hai) anos
pai
achega
f99c83f61f
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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;
     }