Browse Source

HPCC-26420 Fix internal consistency error triggered in debug builds

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday 3 years ago
parent
commit
4ec5e09f25
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ecl/hqlcpp/hqlhtcpp.cpp

+ 1 - 1
ecl/hqlcpp/hqlhtcpp.cpp

@@ -7189,7 +7189,7 @@ BoundRow * HqlCppTranslator::bindTableCursor(BuildCtx & ctx, IHqlExpression * da
 BoundRow * HqlCppTranslator::bindTableCursor(BuildCtx & ctx, IHqlExpression * dataset, const char * name, bool isLinkCounted, node_operator side, IHqlExpression * selSeq)
 {
     Owned<ITypeInfo> type = makeRowReferenceType(dataset);
-    if (isLinkCounted)
+    if (isLinkCounted && !hasLinkCountedModifier(type))
         type.setown(makeAttributeModifier(type.getClear(), getLinkCountedAttr()));
 
     Owned<IHqlExpression> bound = createVariable(name, type.getClear());