fix: empty rel value

This commit is contained in:
a631807682 2023-02-17 16:00:24 +08:00
parent 0dcb172013
commit 724e9001a6
No known key found for this signature in database
GPG Key ID: 137D1D75522168AB

View File

@ -96,8 +96,8 @@ func (db *DB) scanIntoStruct(rows Rows, reflectValue reflect.Value, values []int
relValue.Set(reflect.New(relValue.Type().Elem()))
joinedNestedSchemaMap[fullRelsName] = nil
}
currentReflectValue = relValue
}
currentReflectValue = relValue
}
if !isNilPtrValue { // ignore if value is nil