1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-06 15:49:35 +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:
drh
2011-03-18 21:55:46 +00:00
parent d416fe7995
commit c2a75551ef
8 changed files with 35 additions and 23 deletions

View File

@@ -671,6 +671,7 @@ struct Db {
*/
struct Schema {
int schema_cookie; /* Database schema version number for this file */
int iGeneration; /* Generation counter. Incremented with each change */
Hash tblHash; /* All tables indexed by name */
Hash idxHash; /* All (named) indices indexed by name */
Hash trigHash; /* All triggers indexed by name */