add missing nil check to anonymous struct handling logic
This commit is contained in:
parent
95b6e3f1bf
commit
a608ddd46d
2
query.go
2
query.go
@ -586,7 +586,7 @@ func handleAnon(raw interface{}, rtype reflect.Type, rval reflect.Value) reflect
|
||||
if reflect.TypeOf(fval) == reflect.TypeFor[string]() && typeField.Type == reflect.TypeFor[time.Time]() {
|
||||
tt, _ := time.Parse(time.RFC3339, fval.(string))
|
||||
valueField.Set(reflect.ValueOf(tt))
|
||||
} else {
|
||||
} else if fval != nil {
|
||||
valueField.Set(reflect.ValueOf(fval))
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user