www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 010249e49b1b12c26084f72e5feb20eaab13fbf0
parent a605fe1cff332b5f39047e86d368b28de93f44e1
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon, 25 Apr 2016 00:48:02 -0400

Fix support for old type-forcing object syntax for DB query parameters

Diffstat:
Mchrome/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 @@ -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 {