Merge branch 'master' of github.com:go-xorm/core

This commit is contained in:
Lunny Xiao 2016-02-03 11:10:35 +08:00
commit 9e608f7330
1 changed files with 3 additions and 0 deletions

View File

@ -127,6 +127,9 @@ func (col *Column) ValueOfV(dataStruct *reflect.Value) (*reflect.Value, error) {
keyValue := reflect.ValueOf(col.fieldPath[len(col.fieldPath)-1])
fieldValue = dataStruct.MapIndex(keyValue)
return &fieldValue, nil
} else if dataStruct.Type().Kind() == reflect.Interface {
structValue := reflect.ValueOf(dataStruct.Interface())
dataStruct = &structValue
}
level := len(col.fieldPath)