Skip to content
This repository has been archived by the owner on Jun 19, 2019. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:go-xorm/core
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny committed Feb 3, 2016
2 parents 7aa53cc + 1e2868c commit 9e608f7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions column.go
Expand Up @@ -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)
Expand Down

0 comments on commit 9e608f7

Please sign in to comment.