diff options
author | Cirno the Strongest <1447794+CirnoT@users.noreply.github.com> | 2020-06-06 01:57:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-05 19:57:25 -0400 |
commit | a5aa5c58c1bf5a0c91226e0cbbd7b95bb8f74692 (patch) | |
tree | 6e738ed3d14e4d1e71e34d7fab3b96216d2e9edb /models | |
parent | f576756b182a5666477c3f148f86575869ff08bc (diff) | |
download | gitea-a5aa5c58c1bf5a0c91226e0cbbd7b95bb8f74692.tar.gz gitea-a5aa5c58c1bf5a0c91226e0cbbd7b95bb8f74692.zip |
Increase maximum SQLite variables count to 32766 (#11696)
per https://www.sqlite.org/limits.html
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'models')
-rw-r--r-- | models/issue.go | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/models/issue.go b/models/issue.go index 82f6c926ee..1a4de26b3a 100644 --- a/models/issue.go +++ b/models/issue.go @@ -76,7 +76,6 @@ var ( const issueTasksRegexpStr = `(^\s*[-*]\s\[[\sxX]\]\s.)|(\n\s*[-*]\s\[[\sxX]\]\s.)` const issueTasksDoneRegexpStr = `(^\s*[-*]\s\[[xX]\]\s.)|(\n\s*[-*]\s\[[xX]\]\s.)` const issueMaxDupIndexAttempts = 3 -const maxIssueIDs = 950 func init() { issueTasksPat = regexp.MustCompile(issueTasksRegexpStr) @@ -1114,9 +1113,6 @@ func (opts *IssuesOptions) setupSession(sess *xorm.Session) { } if len(opts.IssueIDs) > 0 { - if len(opts.IssueIDs) > maxIssueIDs { - opts.IssueIDs = opts.IssueIDs[:maxIssueIDs] - } sess.In("issue.id", opts.IssueIDs) } @@ -1360,9 +1356,6 @@ func getIssueStatsChunk(opts *IssueStatsOptions, issueIDs []int64) (*IssueStats, Where("issue.repo_id = ?", opts.RepoID) if len(opts.IssueIDs) > 0 { - if len(opts.IssueIDs) > maxIssueIDs { - opts.IssueIDs = opts.IssueIDs[:maxIssueIDs] - } sess.In("issue.id", opts.IssueIDs) } @@ -1446,9 +1439,6 @@ func GetUserIssueStats(opts UserIssueStatsOptions) (*IssueStats, error) { cond = cond.And(builder.In("issue.repo_id", opts.RepoIDs)) } if len(opts.IssueIDs) > 0 { - if len(opts.IssueIDs) > maxIssueIDs { - opts.IssueIDs = opts.IssueIDs[:maxIssueIDs] - } cond = cond.And(builder.In("issue.id", opts.IssueIDs)) } |