diff options
author | drh <drh@noemail.net> | 2013-09-11 14:34:58 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2013-09-11 14:34:58 +0000 |
commit | 09328c00d69172d93b3c7d53525fc06e78464dbc (patch) | |
tree | ed5f6f36da2176907eae77c3a041b3df819f7b07 /src/where.c | |
parent | aae0f9e462a4b49fbd641e4ecb90a992fca91f45 (diff) | |
download | sqlite-09328c00d69172d93b3c7d53525fc06e78464dbc.tar.gz sqlite-09328c00d69172d93b3c7d53525fc06e78464dbc.zip |
Additional unlikely() test cases. Logic tweaks to support test coverage.
FossilOrigin-Name: 5d00cce74a7aefaf30022ae971ab1e0451e0ad6e
Diffstat (limited to 'src/where.c')
-rw-r--r-- | src/where.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/where.c b/src/where.c index f2ecb7640..540ab075e 100644 --- a/src/where.c +++ b/src/where.c @@ -691,7 +691,7 @@ static int whereClauseInsert(WhereClause *pWC, Expr *p, u8 wtFlags){ pTerm = &pWC->a[idx = pWC->nTerm++]; if( wtFlags & TERM_VIRTUAL ){ pTerm->truthProb = 0; - }else if( p && ExprHasAnyProperty(p, EP_Hint) ){ + }else if( ALWAYS(p) && ExprHasAnyProperty(p, EP_Hint) ){ pTerm->truthProb = whereCost(p->iTable) - 99; }else{ pTerm->truthProb = -1; |