aboutsummaryrefslogtreecommitdiff
path: root/src/vdbe.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vdbe.c')
-rw-r--r--src/vdbe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vdbe.c b/src/vdbe.c
index 88f880ea9..3fee165da 100644
--- a/src/vdbe.c
+++ b/src/vdbe.c
@@ -5248,8 +5248,8 @@ case OP_JournalMode: { /* out2-prerelease */
** in temporary storage or if the VFS does not support xShmOpen.
*/
if( eNew==PAGER_JOURNALMODE_WAL
- && (zFilename[0]==0 /* Temp file */
- || pVfs->iVersion<2 || pVfs->xShmOpen==0) /* No xShmOpen support */
+ && (zFilename[0]==0 /* Temp file */
+ || !sqlite3PagerWalSupported(pPager)) /* No xShmOpen support */
){
eNew = PAGER_JOURNALMODE_QUERY;
}