fix: empty rel value
This commit is contained in:
parent
0dcb172013
commit
724e9001a6
2
scan.go
2
scan.go
@ -96,8 +96,8 @@ func (db *DB) scanIntoStruct(rows Rows, reflectValue reflect.Value, values []int
|
|||||||
relValue.Set(reflect.New(relValue.Type().Elem()))
|
relValue.Set(reflect.New(relValue.Type().Elem()))
|
||||||
joinedNestedSchemaMap[fullRelsName] = nil
|
joinedNestedSchemaMap[fullRelsName] = nil
|
||||||
}
|
}
|
||||||
currentReflectValue = relValue
|
|
||||||
}
|
}
|
||||||
|
currentReflectValue = relValue
|
||||||
}
|
}
|
||||||
|
|
||||||
if !isNilPtrValue { // ignore if value is nil
|
if !isNilPtrValue { // ignore if value is nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user