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:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user