Skip to content

Commit

Permalink
Don't do a COMMIT while saving when not in a transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
MKleusberg committed May 5, 2016
1 parent b00c4f7 commit 6484206
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/sqlitedb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,11 @@ bool DBBrowserDB::releaseAllSavepoints()
if(!releaseSavepoint(point))
return false;
}
executeSQL("COMMIT;", false, false); // Just to be sure

// When still in a transaction, commit that too
if(sqlite3_get_autocommit(_db) == 0)
executeSQL("COMMIT;", false, false);

return true;
}

Expand Down

0 comments on commit 6484206

Please sign in to comment.