From 784d8a1fa8a9db99918f03fbd7dc22fa1ebd5fba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=B8=AA=E0=B8=B2=E0=B8=98=E0=B8=B8=E0=B8=8A=E0=B8=99=20?= =?UTF-8?q?=E0=B8=93=E0=B8=B8?= Date: Mon, 31 Oct 2022 15:01:16 +0700 Subject: [PATCH] refresh cache store for read tableName --- schema/schema.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)