1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-14 00:22:38 +03:00

Fix a problem causing non-covered WHERE terms to be evaluated before covered

WHERE terms.

FossilOrigin-Name: 7d3cb39f60951dcec1ff87da2c4ec998f993de5edf49ee5e5f480c6fe4e5a052
This commit is contained in:
dan
2017-07-10 14:39:42 +00:00
parent ebc63013b7
commit 8674ec5a7f
3 changed files with 8 additions and 11 deletions

View File

@@ -2057,7 +2057,7 @@ Bitmask sqlite3WhereCodeOneLoopStart(
continue;
}
if( iNext==1 && !sqlite3ExprCoveredByIndex(pE, pLevel->iTabCur, pIdx) ){
if( iLoop==1 && !sqlite3ExprCoveredByIndex(pE, pLevel->iTabCur, pIdx) ){
iNext = 2;
continue;
}