mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-18 10:21:03 +03:00
Fix a couple of unreachable branches.
FossilOrigin-Name: 1aa0ea8db7580aff8bed2f78117ed50019e5545cef48cab782f512a2599fd0c5
This commit is contained in:
@@ -3679,7 +3679,7 @@ static i8 wherePathSatisfiesOrderBy(
|
||||
if( !pColl ) pColl = db->pDfltColl;
|
||||
if( sqlite3StrICmp(pColl->zName, pIndex->azColl[j])!=0 ) continue;
|
||||
}
|
||||
if( pLoop->u.btree.nIdxCol<=j ) pLoop->u.btree.nIdxCol = j+1;
|
||||
pLoop->u.btree.nIdxCol = j+1;
|
||||
isMatch = 1;
|
||||
break;
|
||||
}
|
||||
@@ -4857,7 +4857,6 @@ void sqlite3WhereEnd(WhereInfo *pWInfo){
|
||||
int n;
|
||||
if( pWInfo->eDistinct==WHERE_DISTINCT_ORDERED
|
||||
&& (pLoop->wsFlags & WHERE_INDEXED)!=0
|
||||
&& OptimizationEnabled(db, SQLITE_SkipAhead)
|
||||
&& (pIdx = pLoop->u.btree.pIndex)->hasStat1
|
||||
&& pIdx->aiRowLogEst[(n = pLoop->u.btree.nIdxCol)-1]>=36
|
||||
){
|
||||
|
||||
Reference in New Issue
Block a user