mirror of
https://github.com/go-gitea/gitea
synced 2025-07-12 13:37:20 +00:00
use x.SQL instead of x.Sql
This commit is contained in:
@ -628,7 +628,7 @@ func convertDateToUnix(x *xorm.Engine) (err error) {
|
||||
offset := 0
|
||||
for {
|
||||
beans := make([]*Bean, 0, 100)
|
||||
if err = x.Sql(fmt.Sprintf("SELECT * FROM `%s` ORDER BY id ASC LIMIT 100 OFFSET %d",
|
||||
if err = x.SQL(fmt.Sprintf("SELECT * FROM `%s` ORDER BY id ASC LIMIT 100 OFFSET %d",
|
||||
table.name, offset)).Find(&beans); err != nil {
|
||||
return fmt.Errorf("select beans [table: %s, offset: %d]: %v", table.name, offset, err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user