1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-18 10:21:03 +03:00

Remove a redundant test case (probably a copy/paste error). Add an assert()

to where.c to ensure that automatic indexes do not have there output row 
counts adjusted downward by supplementary constraints.

FossilOrigin-Name: eea47933493c85a85247ad383bd148b06f627d04
This commit is contained in:
drh
2014-11-22 12:22:13 +00:00
parent 643091f071
commit a3898250d4
4 changed files with 9 additions and 52 deletions

View File

@@ -4306,6 +4306,7 @@ static void whereLoopOutputAdjust(
int i, j;
int nEq = 0; /* Number of = constraints not within likely()/unlikely() */
assert( (pLoop->wsFlags & WHERE_AUTO_INDEX)==0 );
for(i=pWC->nTerm, pTerm=pWC->a; i>0; i--, pTerm++){
if( (pTerm->wtFlags & TERM_VIRTUAL)!=0 ) break;
if( (pTerm->prereqAll & pLoop->maskSelf)==0 ) continue;