mirror of https://github.com/go-gorm/gorm.git
fix: added `SkipHooks` in db `getInstance()` (#6484)
This commit is contained in:
parent
193c454cf4
commit
f473761813
1
gorm.go
1
gorm.go
|
@ -404,6 +404,7 @@ func (db *DB) getInstance() *DB {
|
||||||
Context: db.Statement.Context,
|
Context: db.Statement.Context,
|
||||||
Clauses: map[string]clause.Clause{},
|
Clauses: map[string]clause.Clause{},
|
||||||
Vars: make([]interface{}, 0, 8),
|
Vars: make([]interface{}, 0, 8),
|
||||||
|
SkipHooks: db.Statement.SkipHooks,
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// with clone statement
|
// with clone statement
|
||||||
|
|
Loading…
Reference in New Issue