mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-05 15:55:57 +03:00
Add a test case to cover code that was left untested by the journal_mode
simplification. FossilOrigin-Name: bcdddba4f011cf008d29918bcac59131007a8138
This commit is contained in:
@@ -5880,12 +5880,11 @@ int sqlite3PagerSetJournalMode(Pager *pPager, int eMode){
|
||||
|| eMode==PAGER_JOURNALMODE_WAL
|
||||
|| eMode==PAGER_JOURNALMODE_MEMORY );
|
||||
|
||||
/* Do not allow the journalmode of a TEMP database to be changed to WAL
|
||||
/* This routine is only called from the OP_JournalMode opcode, and
|
||||
** the logic there will never allow a temporary file to be changed
|
||||
** to WAL mode.
|
||||
*/
|
||||
if( pPager->tempFile && eMode==PAGER_JOURNALMODE_WAL ){
|
||||
assert( eOld!=PAGER_JOURNALMODE_WAL );
|
||||
eMode = eOld;
|
||||
}
|
||||
assert( pPager->tempFile==0 || eMode!=PAGER_JOURNALMODE_WAL );
|
||||
|
||||
/* Do allow the journalmode of an in-memory database to be set to
|
||||
** anything other than MEMORY or OFF
|
||||
|
Reference in New Issue
Block a user