From 4aaa4ebf46add3eb6dd934a48abb2416245323ff Mon Sep 17 00:00:00 2001 From: dadang Date: Mon, 29 Jan 2024 18:10:53 +0700 Subject: [PATCH] fix : jsonb_agg postgres error marshal --- json.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json.go b/json.go index eaaf671..e94178e 100644 --- a/json.go +++ b/json.go @@ -42,7 +42,7 @@ func (nj *NullJSON) Scan(value interface{}) error { if len(t) == 0 { res = NullType } else { - res = t + res = []byte(string(t)) } default: