Index: src/build.c ================================================================== --- src/build.c +++ src/build.c @@ -22,13 +22,13 @@ ** COMMIT ** ROLLBACK ** PRAGMA ** <<<<<<< build.c -** $Id: build.c,v 1.264 2004/11/05 05:10:29 drh Exp $ +** $Id: build.c,v 1.265 2004/11/05 05:20:40 drh Exp $ ======= -** $Id: build.c,v 1.264 2004/11/05 05:10:29 drh Exp $ +** $Id: build.c,v 1.265 2004/11/05 05:20:40 drh Exp $ >>>>>>> 1.262 */ #include "sqliteInt.h" #include @@ -2366,11 +2366,11 @@ sqlite3OpenMasterTable(v, pIndex->iDb); base = sqlite3VdbeAddOpList(v, ArraySize(dropIndex), dropIndex); sqlite3VdbeChangeP3(v, base+1, pIndex->zName, 0); sqlite3ChangeCookie(db, v, pIndex->iDb); /* sqlite3VdbeAddOp(v, OP_Destroy, pIndex->tnum, pIndex->iDb); */ - destroyRootPage(v, pIndex->tnum, pIndex->iDb); + destroyRootPage(pParse, pIndex->tnum, pIndex->iDb); sqlite3VdbeAddOp(v, OP_Close, 0, 0); sqlite3VdbeOp3(v, OP_DropIndex, pIndex->iDb, 0, pIndex->zName, 0); } exit_drop_index: Index: test/attach3.test ================================================================== --- test/attach3.test +++ test/attach3.test @@ -10,11 +10,11 @@ #*********************************************************************** # This file implements regression tests for SQLite library. The # focus of this script is testing the ATTACH and DETACH commands # and schema changes to attached databases. # -# $Id: attach3.test,v 1.11 2004/11/05 05:10:29 drh Exp $ +# $Id: attach3.test,v 1.12 2004/11/05 05:20:40 drh Exp $ # set testdir [file dirname $argv0] source $testdir/tester.tcl