浏览代码

HPCC-15844 Only add linkcounted modifier if not already present

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

+ 1 - 1
ecl/hqlcpp/hqlinline.cpp

@@ -1365,7 +1365,7 @@ void ParentExtract::gatherActiveRows(BuildCtx & ctx)
                     //child contexts.
                     //Need to add these fields to the extract record, and do the assignments at the point of call
                     Owned<ITypeInfo> fieldType = makeRowReferenceType(cur.queryDataset());
-                    if (hasOutOfLineModifier(bound->queryType()))
+                    if (hasOutOfLineModifier(bound->queryType()) && !hasLinkCountedModifier(fieldType))
                         fieldType.setown(makeAttributeModifier(LINK(fieldType), getLinkCountedAttr()));
                     expandedAlias.setown(serialization->createField(NULL, fieldType));
                     OwnedHqlExpr castSource = createValue(no_implicitcast, LINK(fieldType), LINK(bound));