Browse Source

Merge pull request #12894 from ghalliday/issue22687

HPCC-22687 Allow SKIP(FALSE) on a ROW TRANSFORM
Gavin Halliday 5 years ago
parent
commit
67e8d931c5
1 changed files with 1 additions and 1 deletions
  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;
                     *canReachFollowing = false;
             }
             }
         }
         }
-        else
+        else if (!cond || !matchesBoolean(cond, false))
             throwError(HQLERR_SkipNotValidHere);
             throwError(HQLERR_SkipNotValidHere);
     }
     }
 }
 }