diff options
author | drh <drh@noemail.net> | 2019-11-04 12:49:15 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2019-11-04 12:49:15 +0000 |
commit | 06fc24555fd7fc826c68de4b85f2326ada87ea90 (patch) | |
tree | 4faad1a57ddba88f1e3ed2b84c168653a9159585 /src/wherecode.c | |
parent | 6c68d7592faa8cc59d5f81f3ba4d506ea4db71ca (diff) | |
download | sqlite-06fc24555fd7fc826c68de4b85f2326ada87ea90.tar.gz sqlite-06fc24555fd7fc826c68de4b85f2326ada87ea90.zip |
Changes an unreachable testcase() into an assert().
FossilOrigin-Name: 5710845b6314f924b490434b4446169f4bb50576aaa940472af68150db16e127
Diffstat (limited to 'src/wherecode.c')
-rw-r--r-- | src/wherecode.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/wherecode.c b/src/wherecode.c index 7447fafb5..b9801407b 100644 --- a/src/wherecode.c +++ b/src/wherecode.c @@ -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. */ |