From 1476b2f7d443197f8cad869d7da3bd142cfc277d Mon Sep 17 00:00:00 2001 From: Jinzhu Date: Thu, 4 Mar 2021 20:37:39 +0800 Subject: [PATCH] Fix apply config --- gorm.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gorm.go b/gorm.go index 024a8079..a484b002 100644 --- a/gorm.go +++ b/gorm.go @@ -57,6 +57,9 @@ type Config struct { } func (c *Config) Apply(config *Config) error { + if config != c { + *config = *c + } return nil }