Skip to content

Commit

Permalink
exists
Browse files Browse the repository at this point in the history
  • Loading branch information
kkkkkkkkkkkkklllk committed Mar 13, 2024
1 parent 13189c6 commit eb10e66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toSql.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (db *Database) ToSql() (sql4prepare string, values []any, err error) {
}
func (db *Database) ToSqlExists(bind ...any) (sql4prepare string, values []any, err error) {
if len(bind) > 0 {
sql4prepare, values, err = db.Table(bind[0]).Driver.ToSql(db.Context)
sql4prepare, values, err = db.ToSqlTo(bind[0])
} else {
sql4prepare, values, err = db.Driver.ToSql(db.Context)
}
Expand Down

0 comments on commit eb10e66

Please sign in to comment.