aboutsummaryrefslogtreecommitdiff
path: root/src/wherecode.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2016-03-08 01:11:51 +0000
committerdrh <drh@noemail.net>2016-03-08 01:11:51 +0000
commit599d57645625e39738952326d4618f7e86d104c3 (patch)
treebd0c3a68e978d2e28f7232cdd607da87fb03753f /src/wherecode.c
parentfb826b8c13d10fbabfd83301979c9779bc8fe8b3 (diff)
downloadsqlite-599d57645625e39738952326d4618f7e86d104c3.tar.gz
sqlite-599d57645625e39738952326d4618f7e86d104c3.zip
Add a NEVER() to the code generator. Change the parameter name "mExtra"
to "mPrereq" in the query planner, to more closely reflect its meaning. FossilOrigin-Name: 721ae51e443647291f3a8f7f2128aa410fee2682
Diffstat (limited to 'src/wherecode.c')
-rw-r--r--src/wherecode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wherecode.c b/src/wherecode.c
index 4c0878a5a..3705aab51 100644
--- a/src/wherecode.c
+++ b/src/wherecode.c
@@ -882,7 +882,7 @@ Bitmask sqlite3WhereCodeOneLoopStart(
for(j=0; j<nConstraint; j++){
int iTarget = iReg+j+2;
pTerm = pLoop->aLTerm[j];
- if( pTerm==0 ) continue;
+ if( NEVER(pTerm==0) ) continue;
if( pTerm->eOperator & WO_IN ){
codeEqualityTerm(pParse, pTerm, pLevel, j, bRev, iTarget);
addrNotFound = pLevel->addrNxt;