Hstore.Set accepts map[string]Text

non-blocking
Jack Christensen 2022-04-21 19:19:32 -05:00
parent 25558de3bd
commit c63f912615
1 changed files with 2 additions and 0 deletions

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)
}