Skip to content

Commit 55fa9ec

Browse files
committed
fix
1 parent 60a9b07 commit 55fa9ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

finisher_api.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ func (db *DB) Count(count *int64) (tx *DB) {
505505
// Exists checks if there is any record matching the given conditions
506506
func (db *DB) Exists() (bool, error) {
507507
var exist bool
508-
return exist, db.Session(&Session{NewDB: true}).
508+
return exist, db.getInstance().
509509
Raw("SELECT ? AS exist", Expr("EXISTS(?)", db.Select("1"))).
510510
Pluck("exist", &exist).Error
511511
}

0 commit comments

Comments
 (0)