aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2008-01-22 19:34:27 +0000
committerdrh <drh@noemail.net>2008-01-22 19:34:27 +0000
commit02cd2b80c16e3797000411d9d0717f09db2915e2 (patch)
treed99c1404709529983b61a6b8c241abfc9cc16408 /src
parent101716d398bf262f08d8e1f082fffc476ab4fb75 (diff)
downloadsqlite-02cd2b80c16e3797000411d9d0717f09db2915e2.tar.gz
sqlite-02cd2b80c16e3797000411d9d0717f09db2915e2.zip
Fix a bug introduced by checkin (4739). (CVS 4741)
FossilOrigin-Name: c8394ac24b87707fa7f2e3cb43ad8efb65d2595e
Diffstat (limited to 'src')
-rw-r--r--src/prepare.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/prepare.c b/src/prepare.c
index b8fb25ea7..324b15afa 100644
--- a/src/prepare.c
+++ b/src/prepare.c
@@ -13,7 +13,7 @@
** 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 <ctype.h>
@@ -86,7 +86,7 @@ int sqlite3InitCallback(void *pInit, int argc, char **argv, char **azColName){
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