Index: src/prepare.c ================================================================== --- src/prepare.c +++ src/prepare.c @@ -11,11 +11,11 @@ ************************************************************************* ** This file contains the implementation of the sqlite3_prepare() ** interface, and routines that contribute to loading the database schema ** from disk. ** -** $Id: prepare.c,v 1.73 2008/01/22 16:35:37 drh Exp $ +** $Id: prepare.c,v 1.74 2008/01/22 19:34:28 drh Exp $ */ #include "sqliteInt.h" #include /* @@ -84,11 +84,11 @@ corruptSchema(pData, zErr); } sqlite3_free(zErr); return 1; } - }else if( argv[2]==0 ){ + }else if( argv[0]==0 ){ corruptSchema(pData, 0); }else{ /* If the SQL column is blank it means this is an index that ** was created to be the PRIMARY KEY or to fulfill a UNIQUE ** constraint for a CREATE TABLE. The index should have already