1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Fix a minor problem in sqlite3FindInIndex() related to rowids being used

as part of the index.

FossilOrigin-Name: 829f802be7d4647dd815b739bbc9e1d1ac6a224d
This commit is contained in:
drh
2016-08-26 22:09:01 +00:00
parent a84a283d18
commit 106526e1bc
3 changed files with 10 additions and 9 deletions

View File

@@ -2220,8 +2220,9 @@ int sqlite3FindInIndex(
for(j=0; j<nExpr; j++){
if( pIdx->aiColumn[j]!=pRhs->iColumn ) continue;
assert( pIdx->azColl[j] );
if( pReq==0 ) continue;
if( sqlite3StrICmp(pReq->zName, pIdx->azColl[j])!=0 ) continue;
if( pReq!=0 && sqlite3StrICmp(pReq->zName, pIdx->azColl[j])!=0 ){
continue;
}
break;
}
if( j==nExpr ) break;