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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user