Browse Source

Merge pull request #13726 from ghalliday/issue23946b

HPCC-23946 Treat fields moving from key to payload as a key change

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 5 years ago
parent
commit
f713f48293
1 changed files with 2 additions and 0 deletions
  1. 2 0
      rtl/eclrtl/rtldynfield.cpp

+ 2 - 0
rtl/eclrtl/rtldynfield.cpp

@@ -1746,6 +1746,8 @@ private:
                 FieldMatchType maskedType = (FieldMatchType)(info.matchType & ~(match_link|match_inifblock));
                 if (((maskedType != match_perfect) || (idx != info.matchIdx)) && ((field->flags & RFTMispayloadfield) == 0 || (sourceFlags & RFTMispayloadfield) == 0))
                     matchFlags |= match_keychange;
+                else if ((field->flags & RFTMispayloadfield) != (sourceFlags & RFTMispayloadfield))
+                    matchFlags |= match_keychange;
             }
             matchFlags |= info.matchType;
         }