1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Strengthen the sticky-CORRUPT idea of check-in [3feb0f1c3840904d] by

automatically changing the first COMMIT after an SQLITE_CORRUPT error into
a ROLLBACK.

FossilOrigin-Name: bd66ab8a1bc3c43a57c7caff5f54545b0feb0177f1f51492f30d308c123c43ba
This commit is contained in:
drh
2021-11-15 19:10:13 +00:00
parent 3ce76a0bbb
commit 9dc718856f
4 changed files with 11 additions and 9 deletions

View File

@@ -3604,7 +3604,6 @@ case OP_AutoCommit: {
sqlite3CloseSavepoints(db);
if( p->rc==SQLITE_OK ){
rc = SQLITE_DONE;
if( db->autoCommit ) db->flags &= ~SQLITE_CorruptRdOnly;
}else{
rc = SQLITE_ERROR;
}