From 7a81bebb45145d3e3476c01084119137793c9cd8 Mon Sep 17 00:00:00 2001 From: Congqi Xia Date: Wed, 24 Apr 2024 11:33:46 +0800 Subject: [PATCH] fix: Use correct index range for refect Slice method See also #734 Signed-off-by: Congqi Xia --- entity/rows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entity/rows.go b/entity/rows.go index f4a7ff6c..dc30af7a 100644 --- a/entity/rows.go +++ b/entity/rows.go @@ -549,7 +549,7 @@ func reflectValueCandi(v reflect.Value) (map[string]fieldCandi, error) { v := v.Field(i) if v.Kind() == reflect.Array { - v = v.Slice(0, v.Len()-1) + v = v.Slice(0, v.Len()) } result[name] = fieldCandi{