commit 9d353b4e25a63ff08cd8d8e3b6ae04a3082e427f parent b478d8f204609646831b23ccd805a374e7f07431 Author: Dan Stillman <dstillman@zotero.org> Date: Fri, 27 Feb 2015 23:56:35 -0500 Use Zotero.DB.MAX_BOUND_PARAMETERS instead of hard-coded number Diffstat:
| M | chrome/content/zotero/xpcom/storage.js | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/chrome/content/zotero/xpcom/storage.js b/chrome/content/zotero/xpcom/storage.js @@ -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 = [];