-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Labels
issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedIssue has been reviewed and confirmed to be present or accepted to be implementedtype/bug
Milestone

Description
- Gitea version (or commit ref): 1.9.0 / 76408d5
- Git version: 2.20.1
- Operating system: macOS
- Database (use
[x]
):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL)
- No
- Not relevant
- Log gist:
routers/user/home.go:269:Issues() [E] CountIssuesByRepo: too many SQL variables
Description
The above error should be able to explain this issue.
Lines 1357 to 1366 in cd238bc
if len(opts.IssueIDs) > 0 { | |
sess.In("issue.id", opts.IssueIDs) | |
} | |
if len(opts.RepoIDs) > 0 { | |
// In case repository IDs are provided but actually no repository has issue. | |
sess.In("issue.repo_id", opts.RepoIDs) | |
} | |
Lines 1649 to 1658 in cd238bc
case FilterModeAll: | |
stats.OpenCount, err = x.Where(cond).And("is_closed = ?", false). | |
And(builder.In("issue.repo_id", opts.UserRepoIDs)). | |
Count(new(Issue)) | |
if err != nil { | |
return nil, err | |
} | |
stats.ClosedCount, err = x.Where(cond).And("is_closed = ?", true). | |
And(builder.In("issue.repo_id", opts.UserRepoIDs)). | |
Count(new(Issue)) |
Lines 1708 to 1710 in cd238bc
stats.YourRepositoriesCount, err = x.Where(cond). | |
And(builder.In("issue.repo_id", opts.UserRepoIDs)). | |
Count(new(Issue)) |
Metadata
Metadata
Assignees
Labels
issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedIssue has been reviewed and confirmed to be present or accepted to be implementedtype/bug