Merge pull request #1 from aayushacharya/fix/skip-hooks-with-new-db

fix: added `SkipHooks` in db `getInstance()`
This commit is contained in:
Aayush Acharya 2023-07-27 14:51:55 +05:45 committed by GitHub
commit 181f9fdfbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -404,6 +404,7 @@ func (db *DB) getInstance() *DB {
Context: db.Statement.Context,
Clauses: map[string]clause.Clause{},
Vars: make([]interface{}, 0, 8),
SkipHooks: db.Statement.SkipHooks,
}
} else {
// with clone statement