mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-08 14:02:16 +03:00
Allow virtual tables to prepare writes to shadow tables in defensive mode from with xRelease() callbacks - even if the xRelease() is invoked from within sqlite3_finalize().
FossilOrigin-Name: a17106494a8a67bc92cfe27ee8ef9bf160517d6930d796980ae12287b98c1cfe
This commit is contained in:
@@ -1102,7 +1102,10 @@ int sqlite3VtabSavepoint(sqlite3 *db, int op, int iSavepoint){
|
||||
break;
|
||||
}
|
||||
if( xMethod && pVTab->iSavepoint>iSavepoint ){
|
||||
u64 savedFlags = (db->flags & SQLITE_Defensive);
|
||||
db->flags &= ~(u64)SQLITE_Defensive;
|
||||
rc = xMethod(pVTab->pVtab, iSavepoint);
|
||||
db->flags |= savedFlags;
|
||||
}
|
||||
sqlite3VtabUnlock(pVTab);
|
||||
}
|
||||
|
Reference in New Issue
Block a user