Преглед изворни кода

Merge pull request #8855 from ghalliday/issue15844

HPCC-15844 Only add linkcounted modifier if not already present

Reviewed-By: Shamser Ahmed <shamser.ahmed@lexisnexis.co.uk>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman пре 9 година
родитељ
комит
dfa1edce84
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));