浏览代码

Merge branch 'candidate-7.2.x' into candidate-7.4.x

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday 5 年之前
父节点
当前提交
91addcfb18
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      ecl/hqlcpp/hqlresource.cpp

+ 5 - 1
ecl/hqlcpp/hqlresource.cpp

@@ -3926,7 +3926,11 @@ void EclResourcer::deriveUsageCounts(IHqlExpression * expr)
         if (ctx && expr->isDatarow())
         {
             if ((getNumActivityArguments(expr) != 0) && ctx->queryAssociation(expr, AssocRow, nullptr))
-                insideNeverSplit = true;
+            {
+                // Ensure the expression is returned unmodified, so that the value that is already calculated is matched
+                info->containsActivity = false;
+                return;
+            }
         }
 
         switch (expr->getOperator())