From f933936b5fb31aa4e3e71e0b8ae39e386b9eefff Mon Sep 17 00:00:00 2001 From: lovewin99 Date: Sat, 6 Jul 2019 10:53:14 +0800 Subject: [PATCH] fix issue:#11102 Unexcepted result in `SELECT ... CASE WHEN ... ELSE NULL...` --- expression/constant_fold.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/expression/constant_fold.go b/expression/constant_fold.go index 30280a3ba133d..2437b269e31b6 100644 --- a/expression/constant_fold.go +++ b/expression/constant_fold.go @@ -33,8 +33,8 @@ func init() { } specialNullRejectCheck = map[string]struct{}{ - ast.NullEQ: struct{}{}, - ast.Case: struct{}{}, + ast.NullEQ: {}, + ast.Case: {}, } }