Skip to content

Commit

Permalink
fix null (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
czpmango authored Dec 29, 2021
1 parent 627eb44 commit 35f35b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,9 @@ func Base2Value(any interface{}) (value *nebula.Value, err error) {
}
} else if v, ok := any.(string); ok {
value.SVal = []byte(v)
} else if any == nil {
nval := nebula.NullType___NULL__
value.NVal = &nval
} else if v, ok := any.([]interface{}); ok {
nv, er := Slice2Nlist([]interface{}(v))
if er != nil {
Expand Down

0 comments on commit 35f35b8

Please sign in to comment.