good morning!!!!

Skip to content
Snippets Groups Projects
Commit ea17e310 authored by José Carlos Nieto's avatar José Carlos Nieto
Browse files

Support json.RawMessage

parent 6067f785
No related branches found
No related tags found
No related merge requests found
......@@ -63,6 +63,9 @@ func (j *jsonbType) Scan(src interface{}) error {
}
func (j jsonbType) Value() (driver.Value, error) {
if v, ok := j.V.(json.RawMessage); ok {
return string(v), nil
}
b, err := json.Marshal(j.V)
if err != nil {
return nil, err
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment