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

Silently ignore errors trying to set the default journal_mode while doing

an ATTACH.

FossilOrigin-Name: b9af4ad2efadfb2fb9e338dc081a6231f1536700
This commit is contained in:
drh
2010-05-15 01:09:38 +00:00
parent ff59a114bd
commit 89c3f2ff43
3 changed files with 12 additions and 11 deletions

View File

@@ -5293,7 +5293,8 @@ case OP_JournalMode: { /* out2-prerelease */
rc = sqlite3BtreeSetVersion(pBt,
(eNew==PAGER_JOURNALMODE_WAL ? 2 : 1));
if( rc==SQLITE_BUSY && pOp->p5==0 ) goto abort_due_to_error;
}else if( rc==SQLITE_BUSY ){
}
if( rc==SQLITE_BUSY ){
eNew = PAGER_JOURNALMODE_QUERY;
rc = SQLITE_OK;
}