1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-16 23:02:26 +03:00

Bug fix in the IF NOT EXISTS logic. (CVS 2858)

FossilOrigin-Name: cb9095ac52e76926f274678ef55ebb9df4b9fcac
This commit is contained in:
drh
2006-01-04 21:40:06 +00:00
parent 446a9b825b
commit a6370df1e1
4 changed files with 14 additions and 10 deletions

View File

@@ -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];