diff --git a/schema/schema.go b/schema/schema.go index 44ef46ed..92119283 100644 --- a/schema/schema.go +++ b/schema/schema.go @@ -82,7 +82,7 @@ func Parse(dest interface{}, cacheStore *sync.Map, namer Namer) (*Schema, error) // ParseWithSpecialTableName get data type from dialector with extra schema table func ParseWithSpecialTableName(dest interface{}, cacheStore *sync.Map, namer Namer, specialTableName string) (*Schema, error) { - cacheStore = &sync.Map{} // refresh cache store + cacheStore = &sync.Map{} // refresh cache store for read tableName if dest == nil { return nil, fmt.Errorf("%w: %+v", ErrUnsupportedDataType, dest)