diff options
author | drh <drh@noemail.net> | 2011-03-18 21:55:46 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2011-03-18 21:55:46 +0000 |
commit | c2a75551ef8a944e01df64511190bce9be6acb19 (patch) | |
tree | f0b4f4315f2a4a17a73d5d93315ad5300b939067 /src/build.c | |
parent | d416fe799569ff1a570009187d218e5d0dc7c86c (diff) | |
download | sqlite-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/build.c')
-rw-r--r-- | src/build.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/build.c b/src/build.c index 2cfb1f45a..79ac436f0 100644 --- a/src/build.c +++ b/src/build.c @@ -156,7 +156,9 @@ void sqlite3FinishCoding(Parse *pParse){ sqlite3VdbeUsesBtree(v, iDb); sqlite3VdbeAddOp2(v,OP_Transaction, iDb, (mask & pParse->writeMask)!=0); if( db->init.busy==0 ){ - sqlite3VdbeAddOp2(v,OP_VerifyCookie, iDb, pParse->cookieValue[iDb]); + sqlite3VdbeAddOp3(v, OP_VerifyCookie, + iDb, pParse->cookieValue[iDb], + db->aDb[iDb].pSchema->iGeneration); } } #ifndef SQLITE_OMIT_VIRTUALTABLE |