mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-12 13:01:09 +03:00
Add a generation counter to the Schema object and enhance OP_VerifySchema
to also check the Schema generation. Fix for ticket [f7b4edece25c99]. FossilOrigin-Name: 36c04dd1695f0899b53ce58738181b146fc005ed
This commit is contained in:
@@ -266,6 +266,7 @@ int sqlite3_blob_open(
|
||||
/* Configure the OP_VerifyCookie */
|
||||
sqlite3VdbeChangeP1(v, 1, iDb);
|
||||
sqlite3VdbeChangeP2(v, 1, pTab->pSchema->schema_cookie);
|
||||
sqlite3VdbeChangeP3(v, 1, pTab->pSchema->iGeneration);
|
||||
|
||||
/* Make sure a mutex is held on the table to be accessed */
|
||||
sqlite3VdbeUsesBtree(v, iDb);
|
||||
|
||||
Reference in New Issue
Block a user