Skip to content

Commit 99eb229

Browse files
committed
no use SetZero
1 parent d870179 commit 99eb229

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

result_set.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,8 @@ func scanValFromProps(props map[string]*nebula.Value, val reflect.Value, tpe ref
474474
func scanPrimitiveCol(rowVal *nebula.Value, val reflect.Value, kind reflect.Kind) error {
475475
w := ValueWrapper{value: rowVal}
476476
if w.IsNull() || w.IsEmpty() {
477-
val.SetZero()
477+
// SetZero is introduced in go 1.20
478+
// val.SetZero()
478479
return nil
479480
}
480481

0 commit comments

Comments
 (0)