From 4e0dbb3885aa4d11cdb09df25daf8f063300e171 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 1 Jun 2006 22:04:09 +0000 Subject: [PATCH] DB.transactionInProgress() -- this generally shouldn't be needed externally, but due to nested transactions there can be cases where it's unavoidable --- chrome/chromeFiles/content/scholar/xpcom/db.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/chrome/chromeFiles/content/scholar/xpcom/db.js b/chrome/chromeFiles/content/scholar/xpcom/db.js index a08f5c353a..2940433bea 100644 --- a/chrome/chromeFiles/content/scholar/xpcom/db.js +++ b/chrome/chromeFiles/content/scholar/xpcom/db.js @@ -19,6 +19,7 @@ Scholar.DB = new function(){ this.beginTransaction = beginTransaction; this.commitTransaction = commitTransaction; this.rollbackTransaction = rollbackTransaction; + this.transactionInProgress = transactionInProgress; ///////////////////////////////////////////////////////////////// // @@ -232,6 +233,12 @@ Scholar.DB = new function(){ } + function transactionInProgress(){ + var db = _getDBConnection(); + return db.transactionInProgress; + } + + function getColumns(table){ var db = _getDBConnection();