Skip to content

Commit

Permalink
support struct ptr in the slice
Browse files Browse the repository at this point in the history
  • Loading branch information
haoxins committed Jun 29, 2024
1 parent cb38457 commit 222d26e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion result_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@ func scanListCol(vals []*nebula.Value, listVal reflect.Value, sliceType reflect.
listCol = reflect.Append(listCol, ele)
}
default:
fmt.Println("debug", sliceType.Elem().Kind(), "debug", reflect.ValueOf(sliceType.Elem()).Kind())
return errors.New("scan: not support list type")
}

Expand Down Expand Up @@ -428,7 +429,7 @@ func scanStructField(val *nebula.Value, eleVal reflect.Value, eleType reflect.Ty
return nil
}

return errors.New("scan: not support struct type")
return nil
}

func scanValFromProps(props map[string]*nebula.Value, val reflect.Value, tpe reflect.Type) error {
Expand Down

0 comments on commit 222d26e

Please sign in to comment.