mirror of https://github.com/jackc/pgx.git
Hstore.Set accepts map[string]Text
parent
25558de3bd
commit
c63f912615
|
@ -50,6 +50,8 @@ func (dst *Hstore) Set(src interface{}) error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*dst = Hstore{Map: m, Status: Present}
|
*dst = Hstore{Map: m, Status: Present}
|
||||||
|
case map[string]Text:
|
||||||
|
*dst = Hstore{Map: value, Status: Present}
|
||||||
default:
|
default:
|
||||||
return fmt.Errorf("cannot convert %v to Hstore", src)
|
return fmt.Errorf("cannot convert %v to Hstore", src)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue