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

Correctly deal with an unknown collating sequence on an indexed DISTINCT query.

FossilOrigin-Name: a0b6e2fed3e95cf78ed0515c6e4da7510af4e86a
This commit is contained in:
drh
2015-04-15 05:31:02 +00:00
parent 1978d171cb
commit 65df68e8c5
4 changed files with 15 additions and 10 deletions

View File

@@ -1532,7 +1532,7 @@ static int findIndexCol(
&& p->iTable==iBase
){
CollSeq *pColl = sqlite3ExprCollSeq(pParse, pList->a[i].pExpr);
if( ALWAYS(pColl) && 0==sqlite3StrICmp(pColl->zName, zColl) ){
if( pColl && 0==sqlite3StrICmp(pColl->zName, zColl) ){
return i;
}
}