From dbf57850c2b65e53717f9a0fe951105b14863557 Mon Sep 17 00:00:00 2001 From: alingse Date: Mon, 27 May 2024 00:17:41 +0800 Subject: [PATCH] fix: fix miss makezero bug Signed-off-by: alingse --- storage/dial.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/dial.go b/storage/dial.go index 4193dfbfd..51d29b865 100644 --- a/storage/dial.go +++ b/storage/dial.go @@ -71,7 +71,7 @@ func getExcludedColumns(model interface{}, includeColumns ...string) ([]string, cols.Remove(f) } - xcols := make([]string, len(cols.Cols)) + xcols := make([]string, 0, len(cols.Cols)) for n := range cols.Cols { xcols = append(xcols, n) }