We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60a9b07 commit 55fa9ecCopy full SHA for 55fa9ec
finisher_api.go
@@ -505,7 +505,7 @@ func (db *DB) Count(count *int64) (tx *DB) {
505
// Exists checks if there is any record matching the given conditions
506
func (db *DB) Exists() (bool, error) {
507
var exist bool
508
- return exist, db.Session(&Session{NewDB: true}).
+ return exist, db.getInstance().
509
Raw("SELECT ? AS exist", Expr("EXISTS(?)", db.Select("1"))).
510
Pluck("exist", &exist).Error
511
}
0 commit comments