bugfix delete schema cacheStore with modelType error when dynamic tableName
This commit is contained in:
parent
f231b96237
commit
0c73a2a6f9
@ -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)
|
||||
}
|
||||
}()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user