From c63f912615930b25fd5c496e779d015c3bfb67fe Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Thu, 21 Apr 2022 19:19:32 -0500 Subject: [PATCH] Hstore.Set accepts map[string]Text --- hstore.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hstore.go b/hstore.go index f46eeaf6..706a3964 100644 --- a/hstore.go +++ b/hstore.go @@ -50,6 +50,8 @@ func (dst *Hstore) Set(src interface{}) error { } } *dst = Hstore{Map: m, Status: Present} + case map[string]Text: + *dst = Hstore{Map: value, Status: Present} default: return fmt.Errorf("cannot convert %v to Hstore", src) }