Skip to content

Commit 222d26e

Browse files
committed
support struct ptr in the slice
1 parent cb38457 commit 222d26e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

result_set.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,7 @@ func scanListCol(vals []*nebula.Value, listVal reflect.Value, sliceType reflect.
387387
listCol = reflect.Append(listCol, ele)
388388
}
389389
default:
390+
fmt.Println("debug", sliceType.Elem().Kind(), "debug", reflect.ValueOf(sliceType.Elem()).Kind())
390391
return errors.New("scan: not support list type")
391392
}
392393

@@ -428,7 +429,7 @@ func scanStructField(val *nebula.Value, eleVal reflect.Value, eleType reflect.Ty
428429
return nil
429430
}
430431

431-
return errors.New("scan: not support struct type")
432+
return nil
432433
}
433434

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

0 commit comments

Comments
 (0)