Fix nested DB rollback behavior

This commit is contained in:
Dan Stillman 2006-10-21 06:00:46 +00:00
parent 038d403d46
commit c507e02d58

View File

@ -320,8 +320,9 @@ Zotero.DB = new function(){
var db = _getDBConnection();
if (_transactionNestingLevel){
Zotero.debug('Flagging nested transaction for rollback', 5);
_transactionNestingLevel--;
_transactionRollback = true;
Zotero.debug('Flagging nested transaction for rollback', 5);
}
else {
Zotero.debug('Rolling back transaction', 5);