bugfix delete schema cacheStore with modelType error when dynamic tableName

This commit is contained in:
wuxq 2023-07-19 07:29:54 +00:00
parent f231b96237
commit 0c73a2a6f9

View File

@ -332,7 +332,7 @@ func ParseWithSpecialTableName(dest interface{}, cacheStore *sync.Map, namer Nam
defer func() {
if schema.err != nil {
logger.Default.Error(context.Background(), schema.err.Error())
cacheStore.Delete(modelType)
cacheStore.Delete(schemaCacheKey)
}
}()