From 098b7b1b9ebf24e56aa1faffdde25e81e9f1efd4 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 29 Jun 2006 01:06:02 +0000 Subject: [PATCH] Allow single bound parameters not in arrays in DB.query() calls --- chrome/chromeFiles/content/scholar/xpcom/db.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/chrome/chromeFiles/content/scholar/xpcom/db.js b/chrome/chromeFiles/content/scholar/xpcom/db.js index 8f7271455..3796448ba 100644 --- a/chrome/chromeFiles/content/scholar/xpcom/db.js +++ b/chrome/chromeFiles/content/scholar/xpcom/db.js @@ -169,6 +169,11 @@ Scholar.DB = new function(){ } if (statement && params){ + // If single parameter, wrap in an array + if (!params.length){ + params = [params]; + } + for (var i=0; i