]> source.dussan.org Git - gitea.git/commit
Fix DBConsistency checks on MSSQL (#23132)
authorzeripath <art27@cantab.net>
Fri, 24 Feb 2023 21:45:55 +0000 (21:45 +0000)
committerGitHub <noreply@github.com>
Fri, 24 Feb 2023 21:45:55 +0000 (16:45 -0500)
commitd827215011260ca704606e421ce9e1eff32387bc
tree8bf299406485a49fd08cda9e9ba730a502a096f5
parentf4920c9c7f5947d3b6476610f39bc3492ab4ef3b
Fix DBConsistency checks on MSSQL (#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>
models/issues/label.go