Skip to content

Commit 62da147

Browse files
committed
support struct ptr in the slice
1 parent cb38457 commit 62da147

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

result_set.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,9 @@ func scanListCol(vals []*nebula.Value, listVal reflect.Value, sliceType reflect.
386386
}
387387
listCol = reflect.Append(listCol, ele)
388388
}
389+
case reflect.Ptr:
389390
default:
391+
fmt.Println("debug", "debug", sliceType.Elem().Elem().Kind())
390392
return errors.New("scan: not support list type")
391393
}
392394

@@ -428,7 +430,7 @@ func scanStructField(val *nebula.Value, eleVal reflect.Value, eleType reflect.Ty
428430
return nil
429431
}
430432

431-
return errors.New("scan: not support struct type")
433+
return nil
432434
}
433435

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

0 commit comments

Comments
 (0)