Skip to content

unset slice occur #27

@EdwardShen125

Description

@EdwardShen125

Mistakes happened when i migrates docs from one table to another.
source doc like {"A":[], "B":"name"}
result doc like {"B":"name"}
that A field was unset
when param "a" of func "normalizeDocSlice" was a zero length slice that not nil pointer. So the returned var "avs" was a nil.

i guess var avs = make([]interface{}, 0) may solve my problem

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions