From c702bab70800df60da425c22aaf0bb7c4265d06c Mon Sep 17 00:00:00 2001 From: Kray-G Date: Fri, 5 Mar 2021 18:18:43 +0900 Subject: [PATCH] updated case-when. --- src/optimizer/opt_cfold.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/optimizer/opt_cfold.c b/src/optimizer/opt_cfold.c index 63ce7eae3..affaf4385 100644 --- a/src/optimizer/opt_cfold.c +++ b/src/optimizer/opt_cfold.c @@ -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);