Skip to content

Commit 60a9b07

Browse files
committed
fix
1 parent d46c92e commit 60a9b07

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
@@ -506,7 +506,7 @@ func (db *DB) Count(count *int64) (tx *DB) {
506506
func (db *DB) Exists() (bool, error) {
507507
var exist bool
508508
return exist, db.Session(&Session{NewDB: true}).
509-
Raw("SELECT ? AS exist", Expr("EXISTS(?)", db.Select("1").Limit(1))).
509+
Raw("SELECT ? AS exist", Expr("EXISTS(?)", db.Select("1"))).
510510
Pluck("exist", &exist).Error
511511
}
512512

0 commit comments

Comments
 (0)