Yes we do need to copy all maps and slices

This commit is contained in:
Tobie Morgan Hitchcock 2017-11-27 18:32:47 +00:00
parent 287951a37f
commit c925c40846

View file

@ -43,10 +43,8 @@ func (e *executor) fetch(ctx context.Context, val interface{}, doc *data.Doc) (o
case []byte:
return string(val), nil
case []interface{}:
// TODO do we really need to copy?
return deep.Copy(val), nil
case map[string]interface{}:
// TODO do we really need to copy?
return deep.Copy(val), nil
case *sql.Ident: