mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-12 13:01:09 +03:00
Make sure the where.c query planner never reports that the number of ORDER BY
terms that are satisfied by indices is negative. FossilOrigin-Name: b186d8d15a10d5e8fcae9ae72e8624d71831f5bd
This commit is contained in:
@@ -5205,6 +5205,7 @@ static int wherePathSolver(WhereInfo *pWInfo, LogEst nRowEst){
|
||||
}
|
||||
}else{
|
||||
pWInfo->nOBSat = pFrom->isOrdered;
|
||||
if( pWInfo->nOBSat<0 ) pWInfo->nOBSat = 0;
|
||||
pWInfo->revMask = pFrom->revLoop;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user