diff options
author | Nanguan Lin <70063547+lng2020@users.noreply.github.com> | 2023-10-27 19:28:53 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-27 13:28:53 +0200 |
commit | e75b89ea6e78567041949c4ebfa625b6e0a620fa (patch) | |
tree | be7b15fb68073d6e42797c94f95ed6995a2e6599 /models/git | |
parent | f089be91da44ee3e85fbe326a204c7c8a5df3d31 (diff) | |
download | gitea-e75b89ea6e78567041949c4ebfa625b6e0a620fa.tar.gz gitea-e75b89ea6e78567041949c4ebfa625b6e0a620fa.zip |
Upgrade xorm to 1.3.4 (#27807)
Noticeable change:
Remove the `OrderBy("1") `
[patch](https://github.com/go-gitea/gitea/pull/27673#issuecomment-1768570142)
for mssql since xorm has [fixed
it](https://gitea.com/xorm/xorm/commit/0f085408afd85707635eadb2294ab52be04f3c0f).
Diffstat (limited to 'models/git')
-rw-r--r-- | models/git/commit_status.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/git/commit_status.go b/models/git/commit_status.go index c6a52bcd9f..acb0110200 100644 --- a/models/git/commit_status.go +++ b/models/git/commit_status.go @@ -235,7 +235,7 @@ func GetCommitStatuses(ctx context.Context, repo *repo_model.Repository, sha str countSession := listCommitStatusesStatement(ctx, repo, sha, opts) countSession = db.SetSessionPagination(countSession, opts) - maxResults, err := countSession.OrderBy("1").Count(new(CommitStatus)) + maxResults, err := countSession.Count(new(CommitStatus)) if err != nil { log.Error("Count PRs: %v", err) return nil, maxResults, err |