Skip to content

Commit

Permalink
util/codec: fix dropped error
Browse files Browse the repository at this point in the history
  • Loading branch information
alrs committed Feb 9, 2023
1 parent 1140b7c commit 22301e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions util/codec/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -920,6 +920,9 @@ func DecodeAsFloat32(b []byte, tp byte) (remain []byte, d types.Datum, err error
}
var v float64
b, v, err = DecodeFloat(b)
if err != nil {
return nil, d, err
}
d.SetFloat32FromF64(v)
return b, d, nil
}
Expand Down

0 comments on commit 22301e0

Please sign in to comment.