aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2006-01-04 21:40:06 +0000
committerdrh <drh@noemail.net>2006-01-04 21:40:06 +0000
commita6370df1e11642029531fafcabb292aa7efe411f (patch)
tree7d455a16d12d4aa5fa628212c441250c8c524d89 /src
parent446a9b825bb6ade42050ddf30c0ab233a19e45e2 (diff)
downloadsqlite-a6370df1e11642029531fafcabb292aa7efe411f.tar.gz
sqlite-a6370df1e11642029531fafcabb292aa7efe411f.zip
Bug fix in the IF NOT EXISTS logic. (CVS 2858)
FossilOrigin-Name: cb9095ac52e76926f274678ef55ebb9df4b9fcac
Diffstat (limited to 'src')
-rw-r--r--src/build.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/build.c b/src/build.c
index 48cebe427..8907fdf2f 100644
--- a/src/build.c
+++ b/src/build.c
@@ -22,7 +22,7 @@
** COMMIT
** ROLLBACK
**
-** $Id: build.c,v 1.365 2006/01/04 15:54:36 drh Exp $
+** $Id: build.c,v 1.366 2006/01/04 21:40:07 drh Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
@@ -2161,6 +2161,7 @@ void sqlite3CreateIndex(
}else{
assert( pName==0 );
pTab = pParse->pNewTable;
+ if( !pTab ) goto exit_create_index;
iDb = pTab->iDb;
}
pDb = &db->aDb[iDb];