mirror of
https://github.com/zotero/zotero.git
synced 2026-09-19 00:01:31 +00:00
Use Zotero.DB.MAX_BOUND_PARAMETERS instead of hard-coded number
This commit is contained in:
parent
b478d8f204
commit
9d353b4e25
1 changed files with 2 additions and 2 deletions
|
|
@ -742,9 +742,9 @@ Zotero.Sync.Storage = new function () {
|
|||
itemIDs = Object.keys(itemModTimes ? itemModTimes : {});
|
||||
}
|
||||
|
||||
// Can only handle 999 bound parameters at a time
|
||||
// Can only handle a certain number of bound parameters at a time
|
||||
var numIDs = itemIDs.length;
|
||||
var maxIDs = 990;
|
||||
var maxIDs = Zotero.DB.MAX_BOUND_PARAMETERS - 10;
|
||||
var done = 0;
|
||||
var rows = [];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue