aboutsummaryrefslogtreecommitdiffstats
path: root/go.mod
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2023-12-31 13:00:35 +0800
committerGitHub <noreply@github.com>2023-12-31 05:00:35 +0000
commitda58bb85fa4ff8a37f843d09452b4244b18f93ce (patch)
treeb1b79552332abc25d1fd65ea65ded1f4de3babdf /go.mod
parentf8a1bad883aa4697b4001f74e2074898d7162aef (diff)
downloadgitea-da58bb85fa4ff8a37f843d09452b4244b18f93ce.tar.gz
gitea-da58bb85fa4ff8a37f843d09452b4244b18f93ce.zip
Upgrade xorm to new version which supported update join for all supported databases (#28590)
Fix https://github.com/go-gitea/gitea/pull/28547#issuecomment-1867740842 Since https://gitea.com/xorm/xorm/pulls/2383 merged, xorm now supports UPDATE JOIN. To keep consistent from different databases, xorm use `engine.Join().Update`, but the actural generated SQL are different between different databases. For MySQL, it's `UPDATE talbe1 JOIN table2 ON join_conditions SET xxx Where xxx`. For MSSQL, it's `UPDATE table1 SET xxx FROM TABLE1, TABLE2 WHERE join_conditions`. For SQLITE per https://www.sqlite.org/lang_update.html, sqlite support `UPDATE table1 SET xxx FROM table2 WHERE join conditions` from 3.33.0(2020-8-14). POSTGRES is the same as SQLITE.
Diffstat (limited to 'go.mod')
-rw-r--r--go.mod2
1 files changed, 1 insertions, 1 deletions
diff --git a/go.mod b/go.mod
index 54a5608670..c08010a916 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
+ xorm.io/xorm v1.3.6
)
require (