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

Make sure the savepoint index is correct one calls to sqlite3VtabSavepoint

with SAVEPOINT_BEGIN.

FossilOrigin-Name: a9d095660ca0e99b226e0fe669c11a0be6c49710
This commit is contained in:
drh
2011-05-24 00:35:56 +00:00
parent a12b6fa392
commit a24bc9ced3
3 changed files with 9 additions and 8 deletions

View File

@@ -2589,7 +2589,8 @@ case OP_Savepoint: {
** If this is a transaction savepoint being opened, it is guaranteed
** that the db->aVTrans[] array is empty. */
assert( db->autoCommit==0 || db->nVTrans==0 );
rc = sqlite3VtabSavepoint(db, SAVEPOINT_BEGIN, p->iStatement);
rc = sqlite3VtabSavepoint(db, SAVEPOINT_BEGIN,
db->nStatement+db->nSavepoint);
if( rc!=SQLITE_OK ) goto abort_due_to_error;
/* Create a new savepoint structure. */