diff --git a/chrome/content/zotero/xpcom/db.js b/chrome/content/zotero/xpcom/db.js index 6221b23a6..4e6b5451b 100644 --- a/chrome/content/zotero/xpcom/db.js +++ b/chrome/content/zotero/xpcom/db.js @@ -673,15 +673,9 @@ Zotero.DBConnection.prototype.queryAsync = function (sql, params, options) { return rows; } else { - if (op == 'insert' || op == 'replace') { - return conn.lastInsertRowID; - } - else if (op == 'create') { - return true; - } - else { - return conn.affectedRows; - } + // lastInsertRowID is unreliable for async queries, so we don't bother + // returning it for SELECT and REPLACE queries + return; } }) .catch(function (e) {