From 085a012c82718666f65ca6aed8cded31cd2e0889 Mon Sep 17 00:00:00 2001 From: Kray-G Date: Fri, 5 Mar 2021 18:17:22 +0900 Subject: [PATCH] fixed a easy mistake. --- 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 e09c2a491..63ce7eae3 100644 --- a/src/optimizer/opt_cfold.c +++ b/src/optimizer/opt_cfold.c @@ -339,7 +339,7 @@ static void opt_ast_constant_folding_impl(kx_context_t *ctx, kx_object_t *node, break; } - case KXOP_CASE: + case KXOP_CASE: { int in_case_when = cctx->in_case_when; cctx->in_case_when = 1; opt_ast_constant_folding_impl(ctx, node->lhs, cctx); @@ -347,6 +347,7 @@ static void opt_ast_constant_folding_impl(kx_context_t *ctx, kx_object_t *node, opt_ast_constant_folding_impl(ctx, node->ex, cctx); cctx->in_case_when = in_case_when; break; + } case KXOP_WHEN: opt_ast_constant_folding_impl(ctx, node->lhs, cctx); opt_ast_constant_folding_impl(ctx, node->rhs, cctx);