mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
Don't do a COMMIT while saving when not in a transaction
See issue #583.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user