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

New testcase() macros to ensure coverage of the ORDER BY LIMIT optimization

code in where.c.

FossilOrigin-Name: 61f0526978af667781c57bcc87510e4524efd0d8
This commit is contained in:
drh
2016-10-12 15:15:30 +00:00
parent 83465a662f
commit 013ae68b25
3 changed files with 10 additions and 8 deletions

View File

@@ -4131,6 +4131,8 @@ static int wherePathSolver(WhereInfo *pWInfo, LogEst nRowEst){
Bitmask m = 0;
int rc = wherePathSatisfiesOrderBy(pWInfo, pWInfo->pOrderBy, pFrom,
WHERE_ORDERBY_LIMIT, nLoop-1, pFrom->aLoop[nLoop-1], &m);
testcase( wsFlags & WHERE_IPK );
testcase( wsFlags & WHERE_COLUMN_IN );
if( rc==pWInfo->pOrderBy->nExpr ){
pWInfo->bOrderedInnerLoop = 1;
pWInfo->revMask = m;