From 0c73a2a6f9a54181e3619ed3cc07a8b87a0e0a59 Mon Sep 17 00:00:00 2001 From: wuxq Date: Wed, 19 Jul 2023 07:29:54 +0000 Subject: [PATCH] bugfix delete schema cacheStore with modelType error when dynamic tableName --- schema/schema.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema/schema.go b/schema/schema.go index 55724f3f..5cf24e2b 100644 --- a/schema/schema.go +++ b/schema/schema.go @@ -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) } }()