Bläddra i källkod

Merge pull request #672 from ghalliday/aggregate

Fix access to context information from SUM/MAX

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 13 år sedan
förälder
incheckning
f99c83f61f
1 ändrade filer med 2 tillägg och 1 borttagningar
  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;
     }