get elem value() for Ptr type

This commit is contained in:
Nash Tsai 2013-12-06 20:49:11 +08:00
parent 95eccb04eb
commit 0c9b7b274f
1 changed files with 3 additions and 0 deletions

View File

@ -347,6 +347,9 @@ func buildConditions(engine *Engine, table *Table, bean interface{}, includeVers
case reflect.Ptr:
if fieldValue.IsNil() || !fieldValue.IsValid() {
continue
} else {
// TODO need to filter support types
val = fieldValue.Elem()
}
default:
val = fieldValue.Interface()