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

After throwing an error to say that one cannot change into WAL mode within

a tranactions, do not then go and change into WAL mode.

FossilOrigin-Name: 56a17dae91600a3863903f8d654ed52a0f720caf
This commit is contained in:
drh
2010-05-06 16:06:38 +00:00
parent d41a29a653
commit 6e5b37faef
3 changed files with 19 additions and 8 deletions

View File

@@ -5257,6 +5257,7 @@ case OP_JournalMode: { /* out2-prerelease */
"cannot change %s wal mode from within a transaction",
(eNew==PAGER_JOURNALMODE_WAL ? "into" : "out of")
);
break;
}else{
if( eOld==PAGER_JOURNALMODE_WAL ){