Don't do a COMMIT while saving when not in a transaction

See issue #583.
This commit is contained in:
Martin Kleusberg
2016-05-06 01:23:15 +02:00
parent b00c4f791f
commit 6484206b60

View File

@@ -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;
}