From 9dbae233454dcfdf27ae1b933db64277b19cf550 Mon Sep 17 00:00:00 2001 From: fancl Date: Tue, 12 Nov 2024 17:36:44 +0800 Subject: [PATCH] fix serialize bugs --- entry/cli/serialize.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/entry/cli/serialize.go b/entry/cli/serialize.go index 32533bf..550013e 100644 --- a/entry/cli/serialize.go +++ b/entry/cli/serialize.go @@ -200,6 +200,9 @@ func serializeArray(val []any) (buf []byte, err error) { continue } } + if !rv.Type().Field(j).IsExported() { + continue + } indexes = append(indexes, j) row = append(row, columnName) }