Only use indexes on expressions to optimize ORDER BY and GROUP BY if the
collation sequence matches. Possible fix for [e20dd54a]. FossilOrigin-Name: 37e1900880b70be6802eaf43b0e568fda709a1dd6083d8be11e5a7a7d1fda41a
This commit is contained in:
+1
-1
@@ -3689,7 +3689,7 @@ static i8 wherePathSatisfiesOrderBy(
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if( iColumn>=0 ){
|
||||
if( iColumn!=XN_ROWID ){
|
||||
pColl = sqlite3ExprCollSeq(pWInfo->pParse, pOrderBy->a[i].pExpr);
|
||||
if( !pColl ) pColl = db->pDfltColl;
|
||||
if( sqlite3StrICmp(pColl->zName, pIndex->azColl[j])!=0 ) continue;
|
||||
|
||||
Reference in New Issue
Block a user