From 010249e49b1b12c26084f72e5feb20eaab13fbf0 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 25 Apr 2016 00:48:02 -0400 Subject: [PATCH] Fix support for old type-forcing object syntax for DB query parameters --- chrome/content/zotero/xpcom/db.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/db.js b/chrome/content/zotero/xpcom/db.js index b831d12b6..e59692293 100644 --- a/chrome/content/zotero/xpcom/db.js +++ b/chrome/content/zotero/xpcom/db.js @@ -127,7 +127,8 @@ Zotero.DBConnection.prototype.getAsyncStatement = Zotero.Promise.coroutine(funct Zotero.DBConnection.prototype.parseQueryAndParams = function (sql, params) { // If single scalar value, wrap in an array if (!Array.isArray(params)) { - if (typeof params == 'string' || typeof params == 'number' || params === null) { + if (typeof params == 'string' || typeof params == 'number' || typeof params == 'object' + || params === null) { params = [params]; } else {