Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vitstn committed Feb 7, 2024
1 parent 3b801d1 commit 3ad7ac6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ydb/library/yql/sql/v1/sql_translation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4210,9 +4210,15 @@ TNodePtr TSqlTranslation::ForStatement(const TRule_for_stmt& stmt) {
}

itemArgName = PushNamedAtom(itemArgNamePos, itemArgName);
++Ctx.ParallelModeCount;
if (isParallel) {
++Ctx.ParallelModeCount;
}

auto bodyNode = DoStatement(stmt.GetRule_do_stmt7(), true, { itemArgName });
--Ctx.ParallelModeCount;
if (isParallel) {
--Ctx.ParallelModeCount;
}

PopNamedNode(itemArgName);
if (!bodyNode) {
return{};
Expand Down

0 comments on commit 3ad7ac6

Please sign in to comment.