Skip to content

Commit

Permalink
return pointer when converting a float32 (#729)
Browse files Browse the repository at this point in the history
  • Loading branch information
shelldandy authored Sep 7, 2023
1 parent 1e2d4da commit 3e53ca6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/sqlutil/converter.go
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ var IntOrFloatToNullableFloat64 = data.FieldConverter{
return &val, nil
case float32:
fval := float64(val)
return fval, nil
return &fval, nil
case int:
fval := float64(val)
return &fval, nil
Expand Down

0 comments on commit 3e53ca6

Please sign in to comment.