diff --git a/schema/field.go b/schema/field.go index 06d0a5094..b5fd27f2b 100644 --- a/schema/field.go +++ b/schema/field.go @@ -113,13 +113,6 @@ func (f *Field) AppendValue(fmter Formatter, b []byte, strct reflect.Value) []by } func (f *Field) ScanValue(strct reflect.Value, src interface{}) error { - if src == nil { - if fv, ok := fieldByIndex(strct, f.Index); ok { - return f.ScanWithCheck(fv, src) - } - return nil - } - fv := internal.FieldByIndexAlloc(strct, f.Index) return f.ScanWithCheck(fv, src) }