Merge branch 'master' of github.com:go-xorm/core
This commit is contained in:
commit
9e608f7330
|
@ -127,6 +127,9 @@ func (col *Column) ValueOfV(dataStruct *reflect.Value) (*reflect.Value, error) {
|
||||||
keyValue := reflect.ValueOf(col.fieldPath[len(col.fieldPath)-1])
|
keyValue := reflect.ValueOf(col.fieldPath[len(col.fieldPath)-1])
|
||||||
fieldValue = dataStruct.MapIndex(keyValue)
|
fieldValue = dataStruct.MapIndex(keyValue)
|
||||||
return &fieldValue, nil
|
return &fieldValue, nil
|
||||||
|
} else if dataStruct.Type().Kind() == reflect.Interface {
|
||||||
|
structValue := reflect.ValueOf(dataStruct.Interface())
|
||||||
|
dataStruct = &structValue
|
||||||
}
|
}
|
||||||
|
|
||||||
level := len(col.fieldPath)
|
level := len(col.fieldPath)
|
||||||
|
|
Loading…
Reference in New Issue