From 6d8bbebafaa5ff1a34ec953cfa50e69fd45512bd Mon Sep 17 00:00:00 2001 From: kun <412657308@qq.com> Date: Thu, 8 Oct 2020 22:35:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=99=BD=E7=84=B6key=E6=98=AFnil=EF=BC=8C?= =?UTF-8?q?=E4=BD=86=E6=98=AF=E6=9C=89=E4=BA=9B=E5=9C=BA=E6=99=AF=E9=9C=80?= =?UTF-8?q?=E8=A6=81=E8=BF=99=E4=B8=AAkey=E5=AD=98=E5=9C=A8=E3=80=82?= =?UTF-8?q?=E5=A6=82=E6=9E=9Cjson=E4=B8=8D=E5=B8=8C=E6=9C=9B=E6=9C=89null?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=AD=98=E5=9C=A8=EF=BC=8C=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=E4=B8=AD=E6=8A=8Avalue=E8=B5=8B=E5=80=BC=E4=B8=BA?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=80=BC=E5=B0=B1=E5=8F=AF=E4=BB=A5=E4=BA=86?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- helpers_plus.go | 1 + 1 file changed, 1 insertion(+) diff --git a/helpers_plus.go b/helpers_plus.go index 34f99ae..4376ac7 100644 --- a/helpers_plus.go +++ b/helpers_plus.go @@ -239,6 +239,7 @@ func rows2mapObject(rows *core.Rows, fields []string) (resultsMap map[string]int rawValue := reflect.Indirect(reflect.ValueOf(scanResultContainers[ii])) //if row is null then ignore if rawValue.Interface() == nil { + result[key] = nil continue }