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

Changes to work with SQLITE_OMIT_VIRTUAL_TABLE.

FossilOrigin-Name: 03f7d36a8a24825b7542b5fed651af1622ae4eb5
This commit is contained in:
drh
2011-05-26 14:19:14 +00:00
parent 7ee4fdd7ba
commit 305ebab7cc
4 changed files with 11 additions and 9 deletions

View File

@@ -2584,6 +2584,7 @@ case OP_Savepoint: {
}else{
nName = sqlite3Strlen30(zName);
#ifdef SQLITE_OMIT_VIRTUAL_TABLE
/* This call is Ok even if this savepoint is actually a transaction
** savepoint (and therefore should not prompt xSavepoint()) callbacks.
** If this is a transaction savepoint being opened, it is guaranteed
@@ -2592,6 +2593,7 @@ case OP_Savepoint: {
rc = sqlite3VtabSavepoint(db, SAVEPOINT_BEGIN,
db->nStatement+db->nSavepoint);
if( rc!=SQLITE_OK ) goto abort_due_to_error;
#endif
/* Create a new savepoint structure. */
pNew = sqlite3DbMallocRaw(db, sizeof(Savepoint)+nName+1);