From 9d353b4e25a63ff08cd8d8e3b6ae04a3082e427f Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 27 Feb 2015 23:56:35 -0500 Subject: [PATCH] Use Zotero.DB.MAX_BOUND_PARAMETERS instead of hard-coded number --- 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 index e3888d0dc..03613c17b 100644 --- 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 = [];