Selaa lähdekoodia

Merge pull request #12894 from ghalliday/issue22687

HPCC-22687 Allow SKIP(FALSE) on a ROW TRANSFORM
Gavin Halliday 5 vuotta sitten
vanhempi
commit
67e8d931c5
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      ecl/hqlcpp/hqlhtcpp.cpp

+ 1 - 1
ecl/hqlcpp/hqlhtcpp.cpp

@@ -9082,7 +9082,7 @@ void HqlCppTranslator::doBuildStmtSkip(BuildCtx & ctx, IHqlExpression * expr, bo
                     *canReachFollowing = false;
             }
         }
-        else
+        else if (!cond || !matchesBoolean(cond, false))
             throwError(HQLERR_SkipNotValidHere);
     }
 }