2
0

Hstore.Set accepts map[string]Text

This commit is contained in:
Jack Christensen
2022-04-21 19:19:32 -05:00
parent 25558de3bd
commit c63f912615
+2
View File
@@ -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)
}