From 84ef07c8743aab14d7ba112b9abd168889448e41 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sun, 31 Aug 2008 23:39:14 +0000 Subject: [PATCH] Missed file from r3296 and better debugging of invalid DB parameters --- chrome/content/zotero/overlay.js | 4 ++-- chrome/content/zotero/xpcom/db.js | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/chrome/content/zotero/overlay.js b/chrome/content/zotero/overlay.js index 82fc71b03..6898c5f82 100644 --- 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 index 45bb2472a..26992f56d 100644 --- 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];