Skip to content

Commit f36d0f8

Browse files
committed
fix SQL quotes
1 parent 19305a9 commit f36d0f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/repo_list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ func SearchRepositoryByName(opts *SearchRepoOptions) (repos RepositoryList, coun
152152

153153
searcherReposCond = searcherReposCond.Or(builder.In("owner_id", ownerIds))
154154
if opts.Collaborate {
155-
searcherReposCond = searcherReposCond.Or(builder.Expr(`id IN (SELECT repo_id FROM "access" WHERE access.user_id = ? AND owner_id != ?)`,
155+
searcherReposCond = searcherReposCond.Or(builder.Expr("id IN (SELECT repo_id FROM `access` WHERE access.user_id = ? AND owner_id != ?)",
156156
opts.Searcher.ID, opts.Searcher.ID))
157157
}
158158
}

0 commit comments

Comments
 (0)