From 484b1062e1d72f88914753708d975c20633594c9 Mon Sep 17 00:00:00 2001 From: Jan Bader Date: Tue, 22 Feb 2022 13:42:44 +0000 Subject: [PATCH] Fix returning number as string for numbers --- postgres/numeric.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgres/numeric.go b/postgres/numeric.go index b4e5631..f750a7b 100644 --- a/postgres/numeric.go +++ b/postgres/numeric.go @@ -94,7 +94,7 @@ func (n Numeric) Add(other Numeric) Numeric { func (n Numeric) MarshalJSON() ([]byte, error) { if n.Int.Int64() == 0 { - return []byte("\"0\""), nil + return []byte("0"), nil } s := fmt.Sprintf("%d", n.Int)