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

Omit the OP_JournalMode opcode from the VDBE when SQLITE_OMIT_PRAGMA is

defined.

FossilOrigin-Name: 565ff65c61c85c9b2122b31bd9792692aa1e9cda
This commit is contained in:
drh
2010-07-02 19:36:52 +00:00
parent 5257af7dba
commit cac29a67e9
3 changed files with 21 additions and 9 deletions

View File

@@ -5155,6 +5155,7 @@ case OP_Checkpoint: {
};
#endif
#ifndef SQLITE_OMIT_PRAGMA
/* Opcode: JournalMode P1 P2 P3 * P5
**
** Change the journal mode of database P1 to P3. P3 must be one of the
@@ -5279,7 +5280,8 @@ case OP_JournalMode: { /* out2-prerelease */
pOut->enc = SQLITE_UTF8;
sqlite3VdbeChangeEncoding(pOut, encoding);
break;
};
};
#endif /* SQLITE_OMIT_PRAGMA */
#if !defined(SQLITE_OMIT_VACUUM) && !defined(SQLITE_OMIT_ATTACH)
/* Opcode: Vacuum * * * * *