good morning!!!!

Skip to content
Snippets Groups Projects
Commit 03dfcb7f authored by José Carlos's avatar José Carlos Committed by GitHub
Browse files

Merge pull request #215 from upper/hotfix/json-rawmessage

Support json.RawMessage
parents 6067f785 ea17e310
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