]> git.ipfire.org Git - thirdparty/sqlite.git/commit
Fix a bug in DROP TABLE that could cause SQLITE_MASTER table corruption.
authordrh <drh@noemail.net>
Fri, 23 Nov 2001 00:24:12 +0000 (00:24 +0000)
committerdrh <drh@noemail.net>
Fri, 23 Nov 2001 00:24:12 +0000 (00:24 +0000)
commitf5bf0a78be7b1d2179ca493cb31b8ed69b03de01
tree4922335f8ad56d2a61045632b0ff311bd446e617
parentc3a64ba0a650f5670bf86c9d637a79856c951481
Fix a bug in DROP TABLE that could cause SQLITE_MASTER table corruption.
The root problem was that the sequence of BTree operations (Delete, Next)
would not always leave the cursor pointing at the first entry after the
entry that was deleted.  A consequence of this error was that a DROP TABLE
on a table with indices would not always remove every index associated
with that table from the SQLITE_MASTER table.  Subsequent attempts to
open the database will fail when the index for the missing table was
parsed.  Changes have also been made to ignore extra indices in the
SQLITE_MASTER table so that a database previously corrupted by this bug
is once again readable. (CVS 316)

FossilOrigin-Name: 8a984667113564f2bac7412165b6ff8b7e3e8f70
VERSION
manifest
manifest.uuid
src/btree.c
src/main.c
test/btree.test
test/btree3.test [new file with mode: 0644]
test/index.test
test/select2.test
www/changes.tcl