Skip to content

Commit

Permalink
fix: Use correct index range for refect Slice method (#735)
Browse files Browse the repository at this point in the history
See also #734

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
  • Loading branch information
congqixia committed Apr 26, 2024
1 parent 41f8c8d commit d3dec3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entity/rows.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit d3dec3b

Please sign in to comment.