diff options
author | drh <drh@noemail.net> | 2011-03-24 01:34:03 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2011-03-24 01:34:03 +0000 |
commit | 22645842a4495cf9efd2bf9d1fc7e14ea95a9fd7 (patch) | |
tree | 49a6657a7176563139190110146244c1df7a1326 /src/build.c | |
parent | d7b302bf6417ec48f54b405d6ed3f07df31bc00f (diff) | |
download | sqlite-22645842a4495cf9efd2bf9d1fc7e14ea95a9fd7.tar.gz sqlite-22645842a4495cf9efd2bf9d1fc7e14ea95a9fd7.zip |
The changes to fix [f7b4edece25c9948] mean that the schema is always loaded
whenever a prepared statement is running. This means that a couple of
branches can be eliminated and one operand of OP_ParseSchema can be removed.
FossilOrigin-Name: b6e268fce12829f058f1dfa223731ec8479493f8
Diffstat (limited to 'src/build.c')
-rw-r--r-- | src/build.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build.c b/src/build.c index e7c56c9ab..bf3273fc8 100644 --- a/src/build.c +++ b/src/build.c @@ -368,7 +368,7 @@ void sqlite3UnlinkAndDeleteIndex(sqlite3 *db, int iDb, const char *zIdxName){ len = sqlite3Strlen30(zIdxName); pIndex = sqlite3HashInsert(pHash, zIdxName, len, 0); - if( pIndex ){ + if( ALWAYS(pIndex) ){ if( pIndex->pTable->pIndex==pIndex ){ pIndex->pTable->pIndex = pIndex->pNext; }else{ |