Yes we do need to copy all maps and slices
This commit is contained in:
parent
287951a37f
commit
c925c40846
1 changed files with 0 additions and 2 deletions
|
@ -43,10 +43,8 @@ func (e *executor) fetch(ctx context.Context, val interface{}, doc *data.Doc) (o
|
||||||
case []byte:
|
case []byte:
|
||||||
return string(val), nil
|
return string(val), nil
|
||||||
case []interface{}:
|
case []interface{}:
|
||||||
// TODO do we really need to copy?
|
|
||||||
return deep.Copy(val), nil
|
return deep.Copy(val), nil
|
||||||
case map[string]interface{}:
|
case map[string]interface{}:
|
||||||
// TODO do we really need to copy?
|
|
||||||
return deep.Copy(val), nil
|
return deep.Copy(val), nil
|
||||||
|
|
||||||
case *sql.Ident:
|
case *sql.Ident:
|
||||||
|
|
Loading…
Reference in a new issue