forgejo/models/issues
Yarden Shoham 27879bc45e
Fix DBConsistency checks on MSSQL (#23132) (#23134)
Backport #23132

Unfortunately xorm's `builder.Select(...).From(...)` does not escape the
table names. This is mostly not a problem but is a problem with the
`user` table.

This PR simply escapes the user table. No other uses of `From("user")`
where found in the codebase so I think this should be all that is
needed.

Fix #23064

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: zeripath <art27@cantab.net>
2023-02-25 23:25:58 +08:00
..
assignees.go
assignees_test.go
comment.go Rename repo.GetOwner to repo.LoadOwner (#22967) 2023-02-18 20:11:03 +08:00
comment_code.go
comment_list.go Implement actions (#21937) 2023-01-31 09:45:19 +08:00
comment_test.go Support importing comment types (#22510) 2023-01-18 21:14:56 -05:00
content_history.go
content_history_test.go
dependency.go
dependency_test.go
issue.go Fix intermittent panic in notify issue change content (#23019) 2023-02-20 19:15:49 -05:00
issue_index.go
issue_list.go Implement actions (#21937) 2023-01-31 09:45:19 +08:00
issue_list_test.go
issue_lock.go
issue_project.go Improve issues.LoadProject (#22982) 2023-02-20 13:21:56 -06:00
issue_test.go Scoped labels (#22585) 2023-02-18 21:17:39 +02:00
issue_user.go
issue_user_test.go
issue_watch.go
issue_watch_test.go
issue_xref.go Fix more HTMLURL in templates (#22831) 2023-02-09 11:31:30 -05:00
issue_xref_test.go
label.go Fix DBConsistency checks on MSSQL (#23132) (#23134) 2023-02-25 23:25:58 +08:00
label_test.go Scoped labels (#22585) 2023-02-18 21:17:39 +02:00
main_test.go Refactor the setting to make unit test easier (#22405) 2023-02-20 00:12:01 +08:00
milestone.go
milestone_test.go
pull.go Rename repo.GetOwner to repo.LoadOwner (#22967) 2023-02-18 20:11:03 +08:00
pull_list.go Set PR for issue when load attributes for PRs (#22766) 2023-02-05 08:24:43 -06:00
pull_test.go
reaction.go
reaction_test.go
review.go Implement actions (#21937) 2023-01-31 09:45:19 +08:00
review_test.go
stopwatch.go
stopwatch_test.go
tracked_time.go
tracked_time_test.go