www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 882a96ee40ba84955023a327751716a8b6ee6ff1
parent 448fde9ff11ef8b6dcbc50549d64435dd539a1ab
Author: Dan Stillman <dstillman@zotero.org>
Date:   Wed,  7 Jun 2006 14:35:04 +0000

Fixed brokenness on schema reinitialization


Diffstat:
Mchrome/chromeFiles/content/scholar/xpcom/schema.js | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/chrome/chromeFiles/content/scholar/xpcom/schema.js b/chrome/chromeFiles/content/scholar/xpcom/schema.js @@ -127,15 +127,15 @@ Scholar.Schema = new function(){ */ function _initializeSchema(){ try { - beginTransaction(); + Scholar.DB.beginTransaction(); var sql = _getSchemaSQL(); - query(sql); - query("INSERT INTO version VALUES (" + _getSchemaSQLVersion() + ")"); - commitTransaction(); + Scholar.DB.query(sql); + Scholar.DB.query("INSERT INTO version VALUES (" + _getSchemaSQLVersion() + ")"); + Scholar.DB.commitTransaction(); } catch(e){ alert(e); - rollbackTransaction(); + Scholar.DB.rollbackTransaction(); } }