Procházet zdrojové kódy

Merge pull request #12428 from ghalliday/issue20863

HPCC-20863 Fix problems using SELF on the rhs of an assignment

Reviewed-By: Shamser Ahmed <shamser.ahmed@lexisnexis.co.uk>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman před 6 roky
rodič
revize
2bcba75c1e
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      ecl/hql/hqlgram2.cpp

+ 2 - 2
ecl/hql/hqlgram2.cpp

@@ -1588,14 +1588,14 @@ protected:
         if (max == 0)
             return LINK(expr);
 
+        //Fields and records cannot be returned as-is because this is an unnormalized expression
+        //and a TABLE statment might have references to self in the result record (HPCC-20863)
         switch (expr->getOperator())
         {
         case no_attr:
         case no_attr_expr:
         case no_left:
         case no_right:
-        case no_field:
-        case no_record:
             return LINK(expr);
         case no_assign:
             {