Embed ids directly in Tags.getAllWithin() SQL to avoid parameter limit
This commit is contained in:
parent
679148d8d6
commit
c62e725e2a
1 changed files with 1 additions and 2 deletions
|
@ -178,8 +178,7 @@ Zotero.Tags = new function() {
|
|||
params.push(...types);
|
||||
}
|
||||
if (tagIDs) {
|
||||
sql += "AND tagID IN (" + new Array(tagIDs.length).fill('?').join(', ') + ") ";
|
||||
params.push(...tagIDs);
|
||||
sql += "AND tagID IN (" + tagIDs.map(x => parseInt(x)).join(', ') + ") ";
|
||||
}
|
||||
// Not a perfect locale sort, but speeds up the sort in the tag selector later without any
|
||||
// discernible performance cost
|
||||
|
|
Loading…
Reference in a new issue