www

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

commit 87acdce81b03bcf89f7d35a8177b074ddbdfa556
parent cebf2a31259f57e719756c7d8231de8e49520037
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon, 28 Mar 2016 17:51:39 -0400

Pass query options to logQuery for DB.(value/column)Query

Allows, e.g., `debug: false` to work for those methods.

Diffstat:
Mchrome/content/zotero/xpcom/db.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/chrome/content/zotero/xpcom/db.js b/chrome/content/zotero/xpcom/db.js @@ -719,7 +719,7 @@ Zotero.DBConnection.prototype.valueQueryAsync = Zotero.Promise.coroutine(functio let conn = this._getConnection(options) || (yield this._getConnectionAsync(options)); [sql, params] = this.parseQueryAndParams(sql, params); if (Zotero.Debug.enabled) { - this.logQuery(sql, params); + this.logQuery(sql, params, options); } let rows = yield conn.executeCached(sql, params); return rows.length ? rows[0].getResultByIndex(0) : false; @@ -762,7 +762,7 @@ Zotero.DBConnection.prototype.columnQueryAsync = Zotero.Promise.coroutine(functi let conn = this._getConnection(options) || (yield this._getConnectionAsync(options)); [sql, params] = this.parseQueryAndParams(sql, params); if (Zotero.Debug.enabled) { - this.logQuery(sql, params); + this.logQuery(sql, params, options); } let rows = yield conn.executeCached(sql, params); var column = [];