From 3e53ca6981e1ec5a45907cd0f93d6da468b001e4 Mon Sep 17 00:00:00 2001 From: Miguel Palau Date: Thu, 7 Sep 2023 14:58:57 -0600 Subject: [PATCH] return pointer when converting a float32 (#729) --- data/sqlutil/converter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/sqlutil/converter.go b/data/sqlutil/converter.go index b34bb2a1e..7662549c9 100644 --- a/data/sqlutil/converter.go +++ b/data/sqlutil/converter.go @@ -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