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