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

Do not clear the internal "schema has changed" flag when performing a savepoint rollback. The schema changes may not have taken place within the savepoint being rolled back.

FossilOrigin-Name: c2a84430d3b6bb53b19af9294973575178290f93
This commit is contained in:
dan
2010-08-31 16:25:19 +00:00
parent 9977edc7c6
commit c311feec55
4 changed files with 31 additions and 8 deletions

View File

@@ -2606,6 +2606,7 @@ case OP_Savepoint: {
if( p1==SAVEPOINT_ROLLBACK && (db->flags&SQLITE_InternChanges)!=0 ){
sqlite3ExpirePreparedStatements(db);
sqlite3ResetInternalSchema(db, 0);
db->flags = (db->flags | SQLITE_InternChanges);
}
}