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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user