summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNanguan Lin <70063547+lng2020@users.noreply.github.com>2023-10-27 19:28:53 +0800
committerGitHub <noreply@github.com>2023-10-27 13:28:53 +0200
commite75b89ea6e78567041949c4ebfa625b6e0a620fa (patch)
treebe7b15fb68073d6e42797c94f95ed6995a2e6599
parentf089be91da44ee3e85fbe326a204c7c8a5df3d31 (diff)
downloadgitea-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).
-rw-r--r--go.mod2
-rw-r--r--go.sum4
-rw-r--r--models/git/commit_status.go2
3 files changed, 4 insertions, 4 deletions
diff --git a/go.mod b/go.mod
index 07f9c24c7a..a3b4656f76 100644
--- a/go.mod
+++ b/go.mod
@@ -121,7 +121,7 @@ require (
mvdan.cc/xurls/v2 v2.5.0
strk.kbt.io/projects/go/libravatar v0.0.0-20191008002943-06d1c002b251
xorm.io/builder v0.3.13
- xorm.io/xorm v1.3.4-0.20231017094142-dbe499091a7e
+ xorm.io/xorm v1.3.4
)
require (
diff --git a/go.sum b/go.sum
index 99158d731b..0e57ec5368 100644
--- a/go.sum
+++ b/go.sum
@@ -1648,5 +1648,5 @@ strk.kbt.io/projects/go/libravatar v0.0.0-20191008002943-06d1c002b251/go.mod h1:
xorm.io/builder v0.3.11-0.20220531020008-1bd24a7dc978/go.mod h1:aUW0S9eb9VCaPohFCH3j7czOx1PMW3i1HrSzbLYGBSE=
xorm.io/builder v0.3.13 h1:a3jmiVVL19psGeXx8GIurTp7p0IIgqeDmwhcR6BAOAo=
xorm.io/builder v0.3.13/go.mod h1:aUW0S9eb9VCaPohFCH3j7czOx1PMW3i1HrSzbLYGBSE=
-xorm.io/xorm v1.3.4-0.20231017094142-dbe499091a7e h1:oL+ktEW+iSrCXU6IauJ9csZFATEmawkhsq/MAoHTdwo=
-xorm.io/xorm v1.3.4-0.20231017094142-dbe499091a7e/go.mod h1:qFJGFoVYbbIdnz2vaL5OxSQ2raleMpyRRalnq3n9OJo=
+xorm.io/xorm v1.3.4 h1:vWFKzR3DhGUDl5b4srhUjhDwjxkZAc4C7BFszpu0swI=
+xorm.io/xorm v1.3.4/go.mod h1:qFJGFoVYbbIdnz2vaL5OxSQ2raleMpyRRalnq3n9OJo=
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