diff --git a/helpers.go b/helpers.go index a0e894e0..7eaa1dd1 100644 --- a/helpers.go +++ b/helpers.go @@ -282,7 +282,10 @@ func query2(db *core.DB, sqlStr string, params ...interface{}) (resultsSlice []m } func setColumnTime(bean interface{}, col *core.Column, t time.Time) { - v, _ := col.ValueOf(bean) + v, err := col.ValueOf(bean) + if err != nil { + return + } if v.CanSet() { switch v.Type().Kind() { case reflect.Struct: