1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-14 00:22:38 +03:00

Add code to invoke the virtual table transaction interface. Untested at this point. (CVS 3261)

FossilOrigin-Name: 6125140228e09cad2029a48e92aa0123d3daecfb
This commit is contained in:
danielk1977
2006-06-16 16:08:53 +00:00
parent f1a381e7fc
commit f9e7dda7ef
11 changed files with 165 additions and 30 deletions

View File

@@ -1002,6 +1002,7 @@ static int vdbeCommit(sqlite3 *db){
rc = sqlite3BtreeSync(pBt, 0);
}
}
rc = sqlite3VtabSync(db, rc);
/* Do the commit only if all databases successfully synced */
if( rc==SQLITE_OK ){
@@ -1011,6 +1012,7 @@ static int vdbeCommit(sqlite3 *db){
sqlite3BtreeCommit(pBt);
}
}
sqlite3VtabCommit(db);
}
}
@@ -1103,6 +1105,8 @@ static int vdbeCommit(sqlite3 *db){
}
}
}
rc = sqlite3VtabSync(db, SQLITE_OK);
if( rc!=SQLITE_OK ) return rc;
sqlite3OsClose(&master);
/* Delete the master journal file. This commits the transaction. After
@@ -1138,6 +1142,7 @@ static int vdbeCommit(sqlite3 *db){
sqlite3BtreeCommit(pBt);
}
}
sqlite3VtabCommit(db);
}
#endif