aboutsummaryrefslogtreecommitdiff
path: root/src/sqliteInt.h
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2011-03-18 21:55:46 +0000
committerdrh <drh@noemail.net>2011-03-18 21:55:46 +0000
commitc2a75551ef8a944e01df64511190bce9be6acb19 (patch)
treef0b4f4315f2a4a17a73d5d93315ad5300b939067 /src/sqliteInt.h
parentd416fe799569ff1a570009187d218e5d0dc7c86c (diff)
downloadsqlite-c2a75551ef8a944e01df64511190bce9be6acb19.tar.gz
sqlite-c2a75551ef8a944e01df64511190bce9be6acb19.zip
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
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r--src/sqliteInt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index 0142d1e9d..c2d4607be 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -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 */