0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-24 18:44:36 +01:00
gitea/models/issues
Giteabot 18da3f8483
Upgrade xorm to new version which supported update join for all supported databases (#28590) (#28668)
Backport #28590 by @lunny

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.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2023-12-31 13:57:36 +08:00
..
assignees.go
assignees_test.go
comment.go Upgrade xorm to new version which supported update join for all supported databases (#28590) (#28668) 2023-12-31 13:57:36 +08:00
comment_code.go More db.DefaultContext refactor (#27265) (#27347) 2023-09-29 13:35:01 +00:00
comment_list.go Add logs for data broken of comment review (#27326) (#27345) 2023-09-29 13:31:13 +08:00
comment_test.go More db.DefaultContext refactor (#27265) (#27347) 2023-09-29 13:35:01 +00:00
content_history.go Fix comment permissions (#28213) (#28216) 2023-11-25 23:43:23 +00:00
content_history_test.go Fix comment permissions (#28213) (#28216) 2023-11-25 23:43:23 +00:00
dependency.go
dependency_test.go
issue.go
issue_index.go Another round of db.DefaultContext refactor (#27103) (#27262) 2023-09-25 19:24:35 +02:00
issue_label.go Don't let API add 2 exclusive labels from same scope (#27433) (#27460) 2023-10-06 05:06:31 +08:00
issue_label_test.go Don't let API add 2 exclusive labels from same scope (#27433) (#27460) 2023-10-06 05:06:31 +08:00
issue_list.go
issue_list_test.go
issue_lock.go
issue_project.go
issue_search.go Fix review request number and add more tests (#27104) (#27168) 2023-09-21 17:01:37 +00:00
issue_stats.go Another round of db.DefaultContext refactor (#27103) (#27262) 2023-09-25 19:24:35 +02:00
issue_test.go More db.DefaultContext refactor (#27265) (#27347) 2023-09-29 13:35:01 +00:00
issue_update.go Don't use subselect in DeleteIssuesByRepoID (#27332) (#27408) 2023-10-03 17:59:45 +08:00
issue_user.go Add index to issue_user.issue_id (#27154) (#27158) 2023-09-21 11:42:34 +08:00
issue_user_test.go
issue_watch.go
issue_watch_test.go
issue_xref.go More db.DefaultContext refactor (#27265) (#27347) 2023-09-29 13:35:01 +00:00
issue_xref_test.go
label.go
label_test.go
main_test.go
milestone.go
milestone_list.go
milestone_test.go
pull.go Another round of db.DefaultContext refactor (#27103) (#27262) 2023-09-25 19:24:35 +02:00
pull_list.go
pull_test.go
reaction.go Another round of db.DefaultContext refactor (#27103) (#27262) 2023-09-25 19:24:35 +02:00
reaction_test.go Another round of db.DefaultContext refactor (#27103) (#27262) 2023-09-25 19:24:35 +02:00
review.go Fix inperformant query on retrifing review from database. (#28552) (#28562) 2023-12-20 16:55:08 +01:00
review_list.go Another round of db.DefaultContext refactor (#27103) (#27262) 2023-09-25 19:24:35 +02:00
review_test.go Fix 500 when deleting a dismissed review (#27903) (#27910) 2023-11-05 13:59:11 +00:00
stopwatch.go
stopwatch_test.go
tracked_time.go
tracked_time_test.go