Skip to content

Commit

Permalink
updated case-when.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kray-G committed Mar 5, 2021
1 parent 085a012 commit c702bab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/optimizer/opt_cfold.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,11 +348,12 @@ static void opt_ast_constant_folding_impl(kx_context_t *ctx, kx_object_t *node,
cctx->in_case_when = in_case_when;
break;
}
case KXOP_WHEN:
case KXOP_WHEN: {
opt_ast_constant_folding_impl(ctx, node->lhs, cctx);
opt_ast_constant_folding_impl(ctx, node->rhs, cctx);
opt_ast_constant_folding_impl(ctx, node->ex, cctx);
break;
}

case KXOP_TER:
opt_ast_constant_folding_impl(ctx, node->lhs, cctx);
Expand Down

0 comments on commit c702bab

Please sign in to comment.