Fix "too many SQL variables" error syncing many item removals from a collection
This commit is contained in:
parent
04660acbd1
commit
51f79ad627
1 changed files with 2 additions and 4 deletions
|
@ -514,10 +514,8 @@ Zotero.Collection.prototype.save = function () {
|
|||
|
||||
if (removed.length) {
|
||||
var sql = "DELETE FROM collectionItems WHERE collectionID=? "
|
||||
+ "AND itemID IN ("
|
||||
+ removed.map(function () '?').join()
|
||||
+ ")";
|
||||
Zotero.DB.query(sql, [collectionID].concat(removed));
|
||||
+ "AND itemID IN (" + removed.join() + ")";
|
||||
Zotero.DB.query(sql, collectionID);
|
||||
}
|
||||
|
||||
if (newids.length) {
|
||||
|
|
Loading…
Add table
Reference in a new issue