commit 84ef07c8743aab14d7ba112b9abd168889448e41
parent a8bb8dae4013193d449495a6cf04de496ae476a9
Author: Dan Stillman <dstillman@zotero.org>
Date: Sun, 31 Aug 2008 23:39:14 +0000
Missed file from r3296 and better debugging of invalid DB parameters
Diffstat:
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/chrome/content/zotero/overlay.js b/chrome/content/zotero/overlay.js
@@ -303,9 +303,9 @@ var ZoteroPane = new function()
// Focus the quicksearch on pane open
setTimeout("document.getElementById('zotero-tb-search').inputField.select();", 1);
- if (Zotero.Prefs.get('sync.server.autoSync') && Zotero.Sync.Server.enabled) {
+ if (Zotero.Prefs.get('sync.autoSync') && Zotero.Sync.Server.enabled) {
setTimeout(function () {
- Zotero.Sync.Server.sync();
+ Zotero.Sync.Runner.sync();
}, 1000);
}
}
diff --git a/chrome/content/zotero/xpcom/db.js b/chrome/content/zotero/xpcom/db.js
@@ -265,8 +265,11 @@ Zotero.DBConnection.prototype.getStatement = function (sql, params, checkParams)
var type = 'null';
}
else {
- throw('Invalid bound parameter ' + params[i] +
- ' in ' + Zotero.varDump(params));
+ var msg = 'Invalid bound parameter ' + params[i]
+ + ' in ' + Zotero.varDump(params)
+ + ' [QUERY: ' + sql + ']';
+ Zotero.debug(msg);
+ throw(msg);
}
}
var value = params[i];