1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-30 19:03:16 +03:00

Do not allow journal_mode=WAL if the underlying VFS does not support xShmOpen.

FossilOrigin-Name: d1fcccecdc8e9ac5d0d022914e51c545f4e1b04f
This commit is contained in:
drh
2010-05-01 00:59:37 +00:00
parent 27d52b2b19
commit d80b233850
4 changed files with 37 additions and 22 deletions

View File

@ -153,6 +153,7 @@ do_test walmode-5.1.1 {
sqlite3 db :memory:
execsql { PRAGMA main.journal_mode }
} {memory}
breakpoint
do_test walmode-5.1.2 {
execsql { PRAGMA main.journal_mode = wal }
} {memory}
@ -205,13 +206,18 @@ do_test walmode-5.2.5 {
}
} {1 2 3 4 delete}
if {$TEMP_STORE>=2} {
set tempJrnlMode memory
} else {
set tempJrnlMode
}
do_test walmode-5.3.1 {
sqlite3 db test.db
execsql { PRAGMA temp.journal_mode }
} {delete}
} $tempJrnlMode
do_test walmode-5.3.2 {
execsql { PRAGMA temp.journal_mode = wal }
} {delete}
} $tempJrnlMode
do_test walmode-5.3.3 {
execsql {
BEGIN;
@ -221,17 +227,16 @@ do_test walmode-5.3.3 {
SELECT * FROM t1;
PRAGMA temp.journal_mode;
}
} {1 2 delete}
} [list 1 2 $tempJrnlMode]
do_test walmode-5.3.4 {
execsql { PRAGMA temp.journal_mode = wal }
} {delete}
} $tempJrnlMode
do_test walmode-5.3.5 {
execsql {
INSERT INTO t1 VALUES(3, 4);
SELECT * FROM t1;
PRAGMA temp.journal_mode;
}
} {1 2 3 4 delete}
} [list 1 2 3 4 $tempJrnlMode]
finish_test