diff options
author | drh <drh@noemail.net> | 2011-10-07 17:45:58 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2011-10-07 17:45:58 +0000 |
commit | 0a61df670ec218e98a7e1ac4768c2f3b7ebb1cda (patch) | |
tree | 53e14295a094e18fd94f8266ac6e2a5ae83e309b /src | |
parent | 85ae206e69c69179e35c389617f0960ead17826e (diff) | |
download | sqlite-0a61df670ec218e98a7e1ac4768c2f3b7ebb1cda.tar.gz sqlite-0a61df670ec218e98a7e1ac4768c2f3b7ebb1cda.zip |
Add testcase() macros to ensure good test coverage.
FossilOrigin-Name: 5c132592820e9dc2355e26ea14e155c797c335b3
Diffstat (limited to 'src')
-rw-r--r-- | src/where.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/where.c b/src/where.c index 9d5adc183..da7ffbdf8 100644 --- a/src/where.c +++ b/src/where.c @@ -3032,6 +3032,7 @@ static void bestBtreeIndex( pTerm = findTerm(pWC, iCur, j, notReady, eqTermMask, pIdx); if( pTerm==0 ) break; wsFlags |= (WHERE_COLUMN_EQ|WHERE_ROWID_EQ); + testcase( pTerm->pWC!=pWC ); if( pTerm->eOperator & WO_IN ){ Expr *pExpr = pTerm->pExpr; wsFlags |= WHERE_COLUMN_IN; @@ -3063,11 +3064,13 @@ static void bestBtreeIndex( nBound = 1; wsFlags |= WHERE_TOP_LIMIT; used |= pTop->prereqRight; + testcase( pTop->pWC!=pWC ); } if( pBtm ){ nBound++; wsFlags |= WHERE_BTM_LIMIT; used |= pBtm->prereqRight; + testcase( pBtm->pWC!=pWC ); } wsFlags |= (WHERE_COLUMN_RANGE|WHERE_ROWID_RANGE); } |