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

Changes an unreachable testcase() into an assert().

FossilOrigin-Name: 5710845b6314f924b490434b4446169f4bb50576aaa940472af68150db16e127
This commit is contained in:
drh
2019-11-04 12:49:15 +00:00
parent 6c68d7592f
commit 06fc24555f
3 changed files with 11 additions and 8 deletions

View File

@@ -1903,8 +1903,11 @@ Bitmask sqlite3WhereCodeOneLoopStart(
whereApplyPartialIndexConstraints(pIdx->pPartIdxWhere, iCur, pWC);
}
}else{
testcase( (pWInfo->wctrlFlags & WHERE_OR_SUBCLAUSE)==0 );
testcase( pIdx->pPartIdxWhere );
/* The following assert() is not a requirement, merely an observation:
** The OR-optimization doesn't work for the right hand table of
** a LEFT JOIN: */
assert( (pWInfo->wctrlFlags & WHERE_OR_SUBCLAUSE)==0 );
}
/* Record the instruction used to terminate the loop. */