Skip to content

Commit

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

Signed-off-by: Congqi Xia <[email protected]>
  • Loading branch information
congqixia committed Apr 26, 2024
1 parent 41f8c8d commit 7a81beb
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 7a81beb

Please sign in to comment.